Skip to content

Commit

Permalink
Merge pull request #106 from idabblewith/main
Browse files Browse the repository at this point in the history
Update settings.py
  • Loading branch information
idabblewith authored Jul 26, 2024
2 parents 1d9b6c4 + 2b4c8ed commit 50ead53
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@
"DELETE",
]
CORS_ALLOW_HEADERS = [
# "X-CSRFToken",
# "Content-Type",
"X-CSRFToken",
"Content-Type",
"Authorization",
"X-Requested-With",
"Accept",
"Origin",
# "X-CSRFToken",
# "Content-Type",
# "Authorization",
# "X-Requested-With",
# "Accept",
# "Origin",
]


Expand All @@ -219,6 +219,13 @@
]
CORS_ALLOWED_ORIGINS = list(set(CORS_ALLOWED_ORIGINS))

CSRF_COOKIE_NAME = "csrftoken"
if DEBUG:
CSRF_COOKIE_SECURE = False
else:
CSRF_COOKIE_SECURE = True


# print(CORS_ALLOWED_ORIGINS)


Expand Down

0 comments on commit 50ead53

Please sign in to comment.