Skip to content
New issue

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

Add an environment variable to enable CORS requests with basic authentication #1779

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vemonet
Copy link

@vemonet vemonet commented Sep 13, 2021

Added the environment variable ENABLE_CORS_AUTH to disable basic authentication for HTTP OPTIONS to enable CORS requests preflights.

The default behavior does not change, authentication for OPTIONS is still enabled by default

This feature has been mentioned here: #1150
And a first pull request proposed here: #1176

I am not sure about the name of the env variable: ENABLE_CORS_AUTH to disable auth when CORS OPTIONS... Might be a bit misleading. Could be also ENABLE_PASS_CORS_AUTH, let me know if we should change it

Thanks @tkw1536 for the feedback on the issue

And thanks for this amazing project

…OPTIONS to enable CORS requests. The default behavior does not change, authentication for OPTIONS is still enabled by default
@junderw
Copy link
Contributor

junderw commented Sep 13, 2021

Needs tests

@buchdag buchdag added type/feat PR for a new feature status/pr-needs-tests This PR needs new or additional test(s) labels Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/pr-needs-tests This PR needs new or additional test(s) type/feat PR for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants