django-cors-headers package installed and configurated

This commit is contained in:
behruz-dev
2025-11-22 21:57:38 +05:00
parent 15835b4c2d
commit 25e69d3060
3 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
CORS_ALLOWED_ORIGINS = [
"https://example.com",
"http://localhost:3000",
]
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True