Open bhgrant8 opened 4 years ago
Our API will need to be accessible to a frontend javascript application, as such it will need to enable CORS support to allow requests to be made directly from client/browser
CORS
https://www.django-rest-framework.org/topics/ajax-csrf-cors/
The django-cors-headers package's readme discusses this in more depth:
django-cors-headers
https://github.com/adamchainz/django-cors-headers/blob/master/README.rst
Solution should provide implementation of package, along with testing which confirms the proper headers are being set on api calls
This will support end users using the website, and is a hard requirement
Summary
Our API will need to be accessible to a frontend javascript application, as such it will need to enable
CORS
support to allow requests to be made directly from client/browserhttps://www.django-rest-framework.org/topics/ajax-csrf-cors/
Basic behavior example
The
django-cors-headers
package's readme discusses this in more depth:https://github.com/adamchainz/django-cors-headers/blob/master/README.rst
Solution should provide implementation of package, along with testing which confirms the proper headers are being set on api calls
Motivation
This will support end users using the website, and is a hard requirement