Change CORS

This commit is contained in:
sosokker 2023-11-22 22:55:49 +07:00
parent 375397c141
commit d98c77acc6

View File

@ -121,12 +121,10 @@ SOCIALACCOUNT_PROVIDERS = {
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_ALL_ORIGINS = False
CORS_ALLOWED_ORIGINS = [
"http://localhost:8000",
"http://127.0.0.1:8000",
"http://localhost:5173",
"https://turtask.vercel.app",
]
CSRF_TRUSTED_ORIGINS = ["http://localhost:5173"]
CSRF_TRUSTED_ORIGINS = ["https://turtask.vercel.app"]
CORS_ORIGIN_WHITELIST = ["*"]