mirror of
https://github.com/nicolargo/glances.git
synced 2024-08-17 00:10:48 +03:00
Put * in default CORS configuration. Related to discussion #2802
This commit is contained in:
parent
5a78e72419
commit
350318fb6e
@ -130,8 +130,9 @@ class GlancesRestfulApi:
|
||||
# https://fastapi.tiangolo.com/tutorial/cors/
|
||||
self._app.add_middleware(
|
||||
CORSMiddleware,
|
||||
# allow_origins=["*"],
|
||||
allow_origins=[self.bind_url],
|
||||
# Related to https://github.com/nicolargo/glances/discussions/2802
|
||||
# allow_origins=[self.bind_url],
|
||||
allow_origins=["*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
|
Loading…
Reference in New Issue
Block a user