Closed kyeon06 closed 6 months ago
INSTALLED_APPS = [
"corsheaders",
]
MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
]
# CORS_ALLOW_HEADERS = [
# "accept",
# "accept-encoding",
# "authorization",
# "content-type",
# "dnt",
# "origin",
# "user-agent",
# "x-csrftoken",
# "jwt",
# "withCredentials"
# ]
CORS_ALLOW_CREDENTIALS = True
# CORS_ORIGIN_ALLOW = True
CORS_ALLOWED_ORIGINS = [
"http://127.0.0.1:3000",
"http://localhost:3000",
]
# CSRF_TRUSTED_ORIGINS = [
# "http://127.0.0.1:3000",
# "http://localhost:3000",
# ]
Describe the bug
CORS ERROR
Attachment