mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +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:
		| @@ -1177,7 +1177,9 @@ SESSION_COOKIE_SECURE = ( | ||||
|     if DEBUG | ||||
|     else ( | ||||
|         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 | ||||
|         ) | ||||
|     ) | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -124,9 +124,9 @@ use_x_forwarded_host: false | ||||
| use_x_forwarded_port: false | ||||
|  | ||||
| # Cookie settings (nominally the default settings should be fine) | ||||
| #cookie: | ||||
| #  secure: false | ||||
| #  samesite: false | ||||
| cookie: | ||||
|   secure: false | ||||
|   samesite: false | ||||
|  | ||||
| # Cross Origin Resource Sharing (CORS) settings (see https://github.com/adamchainz/django-cors-headers) | ||||
| cors: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user