Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

3 participants