Update CORS setting production_settings.py

This commit is contained in:
Sirin Puenggun 2023-11-23 19:51:34 +07:00 committed by GitHub
parent e6a3b5036c
commit 2131b15548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
},
}
}