Google地图不能通过https在Firefox上加载 [英] Google maps not loading over https on Firefox

查看:410
本文介绍了Google地图不能通过https在Firefox上加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们试图通过HTTPS访问Google Maps。



我们将JSP上的脚本修改为

<$

b $ b

这似乎在Chrome和IE8中正常工作。但在Firefox(V 19.0.2和11)中,有一些问题。



特别是,我们正在获取

lockquote
TypeError:google.maps.InfoWindow是而不是构造函数


在Firefox控制台中,我认为这意味着Google API无法正常访问。



这个问题的任何建议/解决方案?

更多:



我们正在从googlemaps apis获得407回应。
具体来说,使用Fiddler的请求看起来像:

  CONNECT maps.googleapis.com:443 HTTP / 1.1 
用户代理:Mozilla / 5.0(Windows NT 6.1; rv:19.0)Gecko / 20100101 Firefox / 19.0
代理连接:保活
连接:保活
主机: maps.googleapis.com

和Response看起来像:

  HTTP / 1.1 407需要代理授权
日期:2013年4月22日星期一04:46:47 GMT
代理连接:keep-alive
Via:1.1 XXXXX
Cache-Control:no-store
Content-Type:text / html
Content-Language:en
Proxy-Authenticate:NTLM
代理认证:基本realm =Websense内容网关
内容长度:322
代理支持:基于会话的认证

< HEAD>< TITLE> ;所需的代理授权< / TITLE>< / HEAD>
< BODY BGCOLOR =whiteFGCOLOR =black>< H1>代理授权要求< / H1>< HR>
< FONT FACE =Helvetica,Arial>< B>
说明:访问此代理需要授权< / B>< / FONT>
< HR>
<! - 默认需要代理授权响应(407) - >
< / BODY>


解决方案

该死的..与我公司的互联网代理!我不得不添加一个例外到我的应用程序(包括谷歌地图apis)使用的所有网址,它工作正常。


We are trying to access Google Maps over HTTPS.

We modified the script on the JSP to

script src="https://maps.googleapis.com/maps/api/js?client=<xxxx>&sensor=false" type="text/javascript"

This seems to work properly in Chrome and IE8. But in Firefox(V 19.0.2 and 11), there are some issues.

Specifically, We are getting

TypeError: google.maps.InfoWindow is not a constructor

in the Firefox console which I think means that the Google APIs are not getting accessed properly.

Any suggestions/solutions for this issue?

More:

We are getting a 407 response from googlemaps apis. Specifically, using Fiddler the Request looks like:

CONNECT maps.googleapis.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: maps.googleapis.com

and the Response looks like:

HTTP/1.1 407 Proxy Authorization Required
Date: Mon, 22 Apr 2013 04:46:47 GMT
Proxy-Connection: keep-alive
Via: 1.1 XXXXX
Cache-Control: no-store
Content-Type: text/html
Content-Language: en
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="Websense Content Gateway"
Content-Length: 322
Proxy-Support: Session-Based-Authentication

<HEAD><TITLE>Proxy Authorization Required</TITLE></HEAD>
<BODY BGCOLOR="white" FGCOLOR="black"><H1>Proxy Authorization Required</H1><HR>
<FONT FACE="Helvetica,Arial"><B>
Description: Authorization is required for access to this proxy</B></FONT>
<HR>
<!-- default "Proxy Authorization Required" response (407) -->
</BODY>

解决方案

Damn.. Its an issue with my company's internet proxy!! I had to add an exception to all the URLs used by my application(including google map apis) and it works fine.

这篇关于Google地图不能通过https在Firefox上加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆