diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py index 3a37ed602..51fad283c 100644 --- a/gns3server/web/web_server.py +++ b/gns3server/web/web_server.py @@ -311,7 +311,13 @@ def wakeup(): # Background task started with the server self._app.on_startup.append(self._on_startup) - resource_options = aiohttp_cors.ResourceOptions(allow_credentials=True, expose_headers="*", allow_headers="*", max_age=0) + resource_options = aiohttp_cors.ResourceOptions( + allow_credentials=True, + expose_headers="*", + allow_headers="*", + allow_methods="*", + max_age=0 + ) # Allow CORS for this domains cors = aiohttp_cors.setup(self._app, defaults={