Browse Source

Add CSRF_TRUSTED_ORIGINS to development.py

pull/1689/head
Hironsan 3 years ago
parent
commit
8dbb0c72fe
1 changed files with 1 additions and 0 deletions
  1. 1
      backend/config/settings/development.py

1
backend/config/settings/development.py

@ -2,3 +2,4 @@ from .base import * # noqa: F403
MIDDLEWARE.append("api.middleware.RangesMiddleware") # noqa: F405
CORS_ORIGIN_WHITELIST = ("http://127.0.0.1:3000", "http://0.0.0.0:3000", "http://localhost:3000")
CSRF_TRUSTED_ORIGINS = CORS_ORIGIN_WHITELIST
Loading…
Cancel
Save