Django on localhost CORS error on setup process

Feature(s) impacted

The “Add new data source” process for Django

Observed behavior

Once the Package installed, app added to and FOREST dict added, forestadmin try to call the /forest endpoint but get CORS error

Expected behavior

Failure Logs


  • Project name: Platform Usage
  • Team name: Operations
  • Environment name: Django
  • Agent type & version: django-forestadmin==1.2.2
  • Recent changes made on your end if any: …

Hi @ThibautLucas ,

Did you add the init_forest() in your (or file, as explained in the onboarding process ?


Yep :slight_smile: on file not the one, should I ?

Depends if you deploy Django with the Asgi mode or with the Wsgi mode ?
Could you copy/paste your settings file and your wsgi file without your credentials please.