Skip to content

Commit

Permalink
added csrf settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Somraj-234 committed Aug 16, 2024
1 parent bb31b59 commit bee63dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sjhome/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@
BASE_URL = config("BASE_URL", default=None)
# print("DEBUG", DEBUG, type(DEBUG))

CSRF_TRUSTED_ORIGINS = [
"https://sass-demo-production.up.railway.app",
".railway.app"
]

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True


ALLOWED_HOSTS = [
"sass-demo-production.up.railway.app",
".railway.app" # https://saas.prod.railway.app
Expand Down

0 comments on commit bee63dd

Please sign in to comment.