You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.
If you import corsheaders.defaults.default_headers in your setting file to add a custom header to the list of default allowed headers, it'll fail due to circular dependency.
We can probably have a file just for constants and basic types like this and then reference them when needed. That way, we wouldn't have circular dependency.
The text was updated successfully, but these errors were encountered:
In the latest version of django-cors-headers (of which this project is a fork), it appears this is not an issue... defaults.py does not import settings as it does in this.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you import
corsheaders.defaults.default_headers
in your setting file to add a custom header to the list of default allowed headers, it'll fail due to circular dependency.We can probably have a file just for constants and basic types like this and then reference them when needed. That way, we wouldn't have circular dependency.
The text was updated successfully, but these errors were encountered: