At present, it is not possible to enter the URL source for OpenLayers.js using // before the domain name (RFC 1808, Section 4) which allows the browser to determine which protocol to use to retreive the file (HTTPS / HTTP). eg. //www.example.com/js/OpenLayers.js

While openlayers.org itself does not support HTTPS (eg. https://openlayers.org/dev/OpenLayers.js), we use a file from our CDN which does support HTTPS.

Patch attached.

Files: 
CommentFileSizeAuthor
#3 0001-Issue-1694048-JS-file-URL-openlayers_source-should-r.patch2.36 KBPol
Test request sent.
[ View ]
#1 openlayers_rfc_1808_2.patch1.67 KBandrewsuth
Test request sent.
[ View ]
openlayers_rfc_1808.patch745 bytesandrewsuth
Test request sent.
[ View ]

Comments

StatusFileSize
new1.67 KB
Test request sent.
[ View ]

Added user explanation of the use of the double slash.

Status:Needs review» Needs work

Hello @andrewsuth,

Thanks for your patch!
I'm willing to commit it but I need a patch for OL 7.x then I'll commit this patch to OL 6.x.

Thanks

Status:Needs review» Needs work
StatusFileSize
new2.36 KB
Test request sent.
[ View ]

Patch for 7.x-2.x

Status:Needs work» Needs review

Status:Needs work» Fixed

Committed on 7.x & 6.x.

Thanks andrewsuth !

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.