Skip to content

Commit

Permalink
Merge pull request #29 from nens/crsf_tests
Browse files Browse the repository at this point in the history
new csrf try
  • Loading branch information
JJFlorian authored Apr 5, 2024
2 parents 9ef91c9 + 80b0fd8 commit 00f29b5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions brostar_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
if not DEBUG:
ALLOWED_HOSTS = [".brostar.nl"]

CSRF_TRUSTED_ORIGINS = [
"http://localhost:4200",
"https://staging.brostar.nl",
]


# Application definition

Expand All @@ -62,6 +57,13 @@
"encrypted_model_fields",
]

CSRF_TRUSTED_ORIGINS = [
"http://localhost:4200",
"https://staging.brostar.nl",
"https://www.staging.brostar.nl",
]


MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
Expand Down Expand Up @@ -128,7 +130,6 @@
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
CORS_ALLOWED_ORIGINS = [
"http://localhost:4200",
"https://staging.brostar.nl",
]

# Database
Expand Down

0 comments on commit 00f29b5

Please sign in to comment.