workadventure/front/src
David Négrier 3dd2a634a0 Allowing loading HTTP local resources from a HTTPS endpoint.
By default, maps are loaded in HTTPS if WorkAdventure is running in HTTPS, and in HTTP is WorkAdventure is running in HTTP.
Also, if WorkAdventure is running in HTTP and map loading fails, we try map loading in HTTPS (useful when we are working on WorkAdventure locally and want to load a map on a secure domain).

This commit adds the last combination: If WorkAdventure is running in HTTPS, and map loading fails in HTTPS **AND** if the map URL is targetting "localhost", "*.localhost" or "127.0.0.1", then we attempt to load the resource in HTTP.

Why?

"localhost" is considered secure context by modern browsers. So even if a page is loaded in HTTPS, it can load resources from any secure context (including localhost in HTTP).

This means that from "https://play.workadventu.re", I can now test a map running locally on my machine (served by a classic webserver without any certificate).
This change should make map testing easier, since map developers will not have to install the whole WorkAdventure project to test their map locally.
2021-04-11 14:56:03 +02:00
..
Administration [Breaking change] UPLOADER_URL and ADMIN_URL are now true URLs (and not only host name) and API_URL is replaced by PUSHER_URL 2021-03-31 16:00:14 +02:00
Api Hiding iframe in prod 2021-03-28 17:21:10 +02:00
Connexion FEATURE: editing a room in the admin trigger a refresh system 2021-04-02 15:22:02 +02:00
Enum [Breaking change] UPLOADER_URL and ADMIN_URL are now true URLs (and not only host name) and API_URL is replaced by PUSHER_URL 2021-03-31 16:00:14 +02:00
Exception Create exception error 2020-12-18 14:30:46 +01:00
Logger Fixing use const instead of let 2020-06-19 14:30:34 +02:00
Messages Migrating messages locally into back and front 2020-09-24 11:16:08 +02:00
Network rewrote the login workflow 2020-09-25 19:23:33 +02:00
Phaser Allowing loading HTTP local resources from a HTTPS endpoint. 2021-04-11 14:56:03 +02:00
Url Adding an "alone" mode 2021-03-30 16:08:49 +02:00
WebRtc use frame rate setting for initialization 2021-03-30 22:38:44 +02:00
iframe_api.ts Popup openWebSite 2021-03-25 17:12:53 +01:00
index.ts Merge branch 'develop' of github.com:thecodingmachine/workadventure into iframe_api 2021-03-28 16:53:15 +02:00