mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-22 17:33:49 +02:00
Use 'allow_methods="*"' in aiohttp_cors.ResourceOptions(). Fixes #2459
This commit is contained in:
parent
13b0caef4f
commit
2c727c6bd2
@ -311,7 +311,13 @@ class WebServer:
|
|||||||
# Background task started with the server
|
# Background task started with the server
|
||||||
self._app.on_startup.append(self._on_startup)
|
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
|
# Allow CORS for this domains
|
||||||
cors = aiohttp_cors.setup(self._app, defaults={
|
cors = aiohttp_cors.setup(self._app, defaults={
|
||||||
|
Loading…
Reference in New Issue
Block a user