After creating your project, some additional configuration is required to allow the project to run in Gitpod.
-
Install the
django-cors-headers
package and follow the Setup instructions in the README. -
Add the following to the project's
settings.py
:CSRF_TRUSTED_ORIGINS = ['https://*.gitpod.io'] CORS_ALLOWED_ORIGIN_REGEXES = [ r"^https://.*\.gitpod\.io$", ]