2013-02-18 56 views
0

我有問題加載HTTPS和code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js

https://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js(HTTPS )

,但不存在任何問題,下載

http://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.js(HTTP)

結果是:它不加載,螢火蟲說 https://code.jquery.com/mobile/1.3.0-rc.1/jquery.mobile-1.3.0-rc.1.min.jsStatus Aborted

如果我使用http(不是https),那麼它看起來很好:200 OK

爲什麼會發生,以及如何解決它?

他們不允許使用httpS嗎?

回答

1

託管在jQuery.com上的庫由不支持https://的CDN提供,這就是爲什麼您會收到錯誤。

如果您確實希望通過https://交付jQuery(移動版),則可以使用GoogleMicrosoft CDN。可悲的是,Google不託管jQuery Mobile庫,而且微軟不託管1.3.0 RC版本。

從jQuery Mobile的最新版本的微軟SDN(可通過HTTPS訪問),託管是1.2.0

https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.structure-1.2.0.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.structure-1.2.0.min.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.theme-1.2.0.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile.theme-1.2.0.min.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.js https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.min.css https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/jquery.mobile-1.2.0.min.js https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/ajax-loader.gif https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/ajax-loader.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-18-black.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-18-white.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-36-black.png https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.2.0/images/icons-36-white.png