File tree 2 files changed +9
-12
lines changed
openIMIS/openIMIS/settings 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 31
31
USE_X_FORWARDED_HOST = BEHIND_PROXY
32
32
SECURE_SSL_REDIRECT = not BEHIND_PROXY # Only redirect if not behind a proxy
33
33
34
- # CSRF settings
35
- CSRF_COOKIE_SECURE = True
36
- SESSION_COOKIE_SECURE = True
37
-
38
- # CORS settings
39
- CORS_ALLOW_CREDENTIALS = True
40
-
41
- # Cookie settings
42
- SESSION_COOKIE_SAMESITE = 'Lax' # or 'None' if cross-site
43
- CSRF_COOKIE_SAMESITE = 'Lax' # or 'None' if cross-site
44
- CSRF_COOKIE_HTTPONLY = False # False if you need to access it from JavaScript
45
-
46
34
# HSTS settings (if using HTTPS)
47
35
if 'https' in protos :
48
36
SECURE_HSTS_SECONDS = 31536000 # 1 year
Original file line number Diff line number Diff line change 89
89
RATELIMIT_GROUP = os .getenv ('RATELIMIT_GROUP' , 'graphql' )
90
90
RATELIMIT_SKIP_TIMEOUT = os .getenv ('RATELIMIT_SKIP_TIMEOUT' , 'False' )
91
91
92
+ # CSRF settings
93
+ CSRF_COOKIE_SECURE = True
94
+ SESSION_COOKIE_SECURE = True
92
95
96
+ # CORS settings
97
+ CORS_ALLOW_CREDENTIALS = True
93
98
99
+ # Cookie settings
100
+ SESSION_COOKIE_SAMESITE = 'Lax' # or 'None' if cross-site
101
+ CSRF_COOKIE_SAMESITE = 'Lax' # or 'None' if cross-site
102
+ CSRF_COOKIE_HTTPONLY = False # False if you need to access it from JavaScript
94
103
95
104
# Adjust other settings as needed for your specific application
96
105
# ...
You can’t perform that action at this time.
0 commit comments