2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Fix default value for SESSION_COOKIE_SECURE (#8767)

- Default value was previously 'True'
- Documentation indicated that it was 'False'
- Value in config_template.yaml was 'False' (but commented out)
This commit is contained in:
Oliver 2024-12-26 11:25:58 +11:00 committed by GitHub
parent ae7f4e33d5
commit d4ee8c53b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -1177,7 +1177,9 @@ SESSION_COOKIE_SECURE = (
if DEBUG if DEBUG
else ( else (
SESSION_COOKIE_SAMESITE == 'None' SESSION_COOKIE_SAMESITE == 'None'
or get_boolean_setting('INVENTREE_SESSION_COOKIE_SECURE', 'cookie.secure', True) or get_boolean_setting(
'INVENTREE_SESSION_COOKIE_SECURE', 'cookie.secure', False
)
) )
) )

View File

@ -124,9 +124,9 @@ use_x_forwarded_host: false
use_x_forwarded_port: false use_x_forwarded_port: false
# Cookie settings (nominally the default settings should be fine) # Cookie settings (nominally the default settings should be fine)
#cookie: cookie:
# secure: false secure: false
# samesite: false samesite: false
# Cross Origin Resource Sharing (CORS) settings (see https://github.com/adamchainz/django-cors-headers) # Cross Origin Resource Sharing (CORS) settings (see https://github.com/adamchainz/django-cors-headers)
cors: cors: