mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 05:54:07 +01:00
Update CORS setting production_settings.py
This commit is contained in:
parent
e6a3b5036c
commit
2131b15548
@ -123,10 +123,8 @@ CORS_ALLOW_ALL_ORIGINS = False
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
"https://turtask.vercel.app",
|
||||
]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = ["https://turtask.vercel.app"]
|
||||
|
||||
CORS_ORIGIN_WHITELIST = ["*"]
|
||||
CORS_ORIGIN_WHITELIST = ["https://turtask.vercel.app"]
|
||||
|
||||
MIDDLEWARE = [
|
||||
'corsheaders.middleware.CorsMiddleware',
|
||||
@ -264,4 +262,4 @@ STORAGES = {
|
||||
"staticfiles": {
|
||||
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user