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

Require scheme in origins #397

Merged
merged 1 commit into from May 10, 2019
Merged

Require scheme in origins #397

merged 1 commit into from May 10, 2019

Conversation

adamchainz
Copy link
Owner

This "upgrades" the change in #388 to require scheme, rather than going through a deprecation period. It simplifies the code greatly.

I added checks as well to ensure that CORS_ORIGIN_WHITELIST is well-formed, so that users upgrading will see some obvious errors.

@adamchainz
Copy link
Owner Author

@wgonczaronek do you want to give this a check?

Copy link
Contributor

@wgonczaronek wgonczaronek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. This is what I wanted my final proposition to look like.

@adamchainz
Copy link
Owner Author

Perfect! I'll just fix up the code style, do some other tidy up I have planned, merge and release!

This "upgrades" the change in #388 to *require* scheme, rather than going through a deprecation period. It simplifies the code greatly.

I added checks as well to ensure that `CORS_ORIGIN_WHITELIST` is well-formed, so that users upgrading will see some obvious errors.
@leibowitz
Copy link

leibowitz commented May 14, 2019

Hi, I just wanted to thank you for adding the check and corsheaders.E013 error. Having upgraded from the previous version this warned me that something needed to change and made it very easy to update the config.
👍

@adamchainz
Copy link
Owner Author

@leibowitz no worries, thanks for your message of encouragement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants