Skip to content

Explicitly document proper regex requirements for origins#400

Open
valerianb wants to merge 1 commit intocorydolphin:mainfrom
valerianb:improve-regex
Open

Explicitly document proper regex requirements for origins#400
valerianb wants to merge 1 commit intocorydolphin:mainfrom
valerianb:improve-regex

Conversation

@valerianb
Copy link

Unlike https://pypi.org/project/django-cors-headers/ which documents and gives proper examples of valid regexes for origins, this project does not give any example leaving it to the user to know how to write good regexes.

The regexes used in the unit tests actually allow to circumvent the allowed domains.

This PR aims to improve the documentation and fix the tests.

@valerianb
Copy link
Author

Hey @corydolphin do you have any feedback about this PR ? Thanks

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.

1 participant