mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Add 127.0.0.1:8080 in allowed CORS
This commit is contained in:
parent
dbda3fc8fc
commit
0063fb4615
@ -211,6 +211,7 @@ class WebServer:
|
|||||||
# Allow CORS for this domains
|
# Allow CORS for this domains
|
||||||
cors = aiohttp_cors.setup(app, defaults={
|
cors = aiohttp_cors.setup(app, defaults={
|
||||||
# Default web server for web gui dev
|
# 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://localhost:8080": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*"),
|
||||||
"http://gns3.github.io": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*")
|
"http://gns3.github.io": aiohttp_cors.ResourceOptions(expose_headers="*", allow_headers="*")
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user