From c4ebdc0e377d2501f6dc6a0a30086edaf2d16201 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 17 May 2016 17:51:22 +0200 Subject: [PATCH] Allow cors from Github pages demo site --- gns3server/web/web_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index d6da3845..76594601 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -211,7 +211,8 @@ class WebServer: # Allow CORS for this domains cors = aiohttp_cors.setup(app, defaults={ # Default web server for web gui dev - "http://localhost: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="*") }) for method, route, handler in Route.get_routes(): log.debug("Adding route: {} {}".format(method, route))