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
The CORS header configuration is absent and prevents files accessed using CORS. A simple fix for this is to add the following to the api_site settings.py file:
The headers specified are all of the defaults found here and the addition of the "content-disposition" header item is what makes the file access work with CORS.
The text was updated successfully, but these errors were encountered:
The CORS header configuration is absent and prevents files accessed using CORS. A simple fix for this is to add the following to the api_site settings.py file:
CORS_ALLOW_HEADERS = [ 'accept', 'accept-encoding', 'authorization', 'content-type', 'content-disposition', 'dnt', 'origin', 'user-agent', 'x-csrftoken', 'x-requested-with', ]
The headers specified are all of the defaults found here and the addition of the "content-disposition" header item is what makes the file access work with CORS.
The text was updated successfully, but these errors were encountered: