Closed arnaudbesnier closed 2 years ago
Maybe the only thing we can do is to write a documentation similar to the Ruby on Rails one: https://docs.forestadmin.com/documentation/how-tos/setup/configuring-cors-headers
django-cors-headers
is used by django-forestadmin
: https://github.com/ForestAdmin/django-forestadmin/blob/main/django_forest/utils/cors.py
If it helps
ENV variable can be overridden form the FOREST
django settings as done for the documentation on ruby on rails ;)
The cors policies settings are been updated in this PR https://github.com/ForestAdmin/django-forestadmin/pull/77 . It fixes the CORS issues.
Expected behavior
Using the app
django-cors-headers
, the onboarding should be smooth.Actual behavior
Onboarding on a Django backend using the app
django-cors-headers
seems to conflict with the agent CORS configuration and does not let the Forest Admin client request the backend. By manually addingapp.forestadmin.com
, as an authorized domain to thedjango-cors-headers
configuration, we manage to bypass the issue.Context