Add django-cors-headers #4
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A crucial part of allowing API access to external applciation is through CORS headers,
My API requests were returning a CORS error,
Request to add django-cors-headers to the requirements?
pip install django-cors-headersWould provide the following additional settings in ./migratorapi/settings.py
This provides for API requests to succeed, from the frontend
In production, CORS_ORIGINS can be controlled more finely, and would prevent requests from unauthorized origins
peas and love
Added in commit
1a85c99752