mirror of https://github.com/nicolargo/glances
Put * in default CORS configuration. Related to discussion #2802
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