We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related to #2802
Make the CORS section of the API configurable:
# FastAPI Enable CORS # https://fastapi.tiangolo.com/tutorial/cors/ self._app.add_middleware( CORSMiddleware, # Related to https://github.com/nicolargo/glances/discussions/2802 # allow_origins=[self.bind_url], allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"], )
the origins, credentials , methods and headers should be configurable from the Glances configuration file:
[outputs] cors_origins=* cors_credentials=True cors_methods=* cors_headers=*
Default values should be the ones in th previous example.
The text was updated successfully, but these errors were encountered:
Make CORS option configurable #2812
6410cca
Merged into develop.
Sorry, something went wrong.
Working great! Thank you so much!
No branches or pull requests
Related to #2802
Make the CORS section of the API configurable:
the origins, credentials , methods and headers should be configurable from the Glances configuration file:
Default values should be the ones in th previous example.
The text was updated successfully, but these errors were encountered: