Skip to content

Commit

Permalink
Remove now redundant CORS settings since we are no longer using a fro…
Browse files Browse the repository at this point in the history
…ntend, and CRSF settings
  • Loading branch information
okeneo committed Sep 30, 2024
1 parent 8696cdc commit 5c5dde7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/myproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,6 @@

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

# Configure CORS to permit access from specific frontend server addresses.
CORS_ORIGIN_WHITELIST = [
"http://localhost:3000",
"http://127.0.0.1:3000",
]


SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=60),
"REFRESH_TOKEN_LIFETIME": timedelta(days=1),
Expand Down Expand Up @@ -209,5 +202,3 @@
}

SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

# CSRF_TRUSTED_ORIGINS = config("CSRF_TRUSTED_ORIGINS").split(" ")

0 comments on commit 5c5dde7

Please sign in to comment.