mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-20 06:24: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 = [
|
CORS_ALLOWED_ORIGINS = [
|
||||||
"https://turtask.vercel.app",
|
"https://turtask.vercel.app",
|
||||||
]
|
]
|
||||||
|
|
||||||
CSRF_TRUSTED_ORIGINS = ["https://turtask.vercel.app"]
|
CSRF_TRUSTED_ORIGINS = ["https://turtask.vercel.app"]
|
||||||
|
CORS_ORIGIN_WHITELIST = ["https://turtask.vercel.app"]
|
||||||
CORS_ORIGIN_WHITELIST = ["*"]
|
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
'corsheaders.middleware.CorsMiddleware',
|
'corsheaders.middleware.CorsMiddleware',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user