From 6a87047c182ff29a401099ff12edf76f5b8ce051 Mon Sep 17 00:00:00 2001 From: ziajka Date: Fri, 20 Oct 2017 13:21:43 +0200 Subject: [PATCH] Added localhost and gns3.github.io CORS --- gns3server/web/web_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index d5b0be014..40179367e 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -249,7 +249,10 @@ class WebServer: # Default web server for web gui dev "http://127.0.0.1:8080": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*"), "http://localhost:8080": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*"), - "http://gns3.github.io": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*") + "http://127.0.0.1:4200": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*"), + "http://localhost:4200": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*"), + "http://gns3.github.io": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*"), + "https://gns3.github.io": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*") }) PortManager.instance().console_host = self._host