Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS access for OpenLayers.js? #1025

Closed
dandv opened this issue Jul 2, 2013 · 5 comments
Closed

HTTPS access for OpenLayers.js? #1025

dandv opened this issue Jul 2, 2013 · 5 comments

Comments

@dandv
Copy link

dandv commented Jul 2, 2013

I'm trying to use the latest API by linking directly to http://www.openlayers.org/api/OpenLayers.js. The problem is that when we've switched on HSTS, the .js wouldn't load:

[blocked] The page at https://blueseed.co/faq/#ship ran insecure content from http://www.openlayers.org/api/OpenLayers.js.

I've copied the .js to my server, but it would be nice if https://www.openlayers.org/api/OpenLayers.js would be supported, so we can use protocol-less URIs as in c0bff1c.

(If there's another recommended way to do HTTPS, please let me know; a Google search wasn't very helpful.)

@ahocevar
Copy link
Member

ahocevar commented Jul 2, 2013

You are strongly encouraged to host your own build of OpenLayers. http://openlayers.org/api/ has no guaranteed uptime and runs on a slow server.

@dismantl
Copy link

It still would be nice if openlayers.org had HTTPS available (perhaps even forced) so that developers could download the source over a secure connection.

@mprins
Copy link
Contributor

mprins commented Feb 20, 2014

@dismantl github provides secure download of the source code, eg. https://github.com/openlayers/openlayers/archive/release-2.13.1.zip

@dismantl
Copy link

good point, thanks!

@fmalina
Copy link

fmalina commented Jan 29, 2016

HTTPS CDN URL for reference: https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js
Full asset listings:
v2 https://cdnjs.com/libraries/openlayers
v3 https://cdnjs.com/libraries/ol3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants