You've already forked calibre-web
							
							
				mirror of
				https://github.com/janeczku/calibre-web.git
				synced 2025-10-30 23:57:40 +02:00 
			
		
		
		
	Improve a bit the cookie's hardening
- Samesite for session cookies as well as the remember me ones - Httponly
This commit is contained in:
		| @@ -56,6 +56,12 @@ mimetypes.add_type('application/ogg', '.ogg') | ||||
| mimetypes.add_type('application/ogg', '.oga') | ||||
|  | ||||
| app = Flask(__name__) | ||||
| app.config.update( | ||||
|     SESSION_COOKIE_HTTPONLY=True, | ||||
|     SESSION_COOKIE_SAMESITE='Lax', | ||||
|     REMEMBER_COOKIE_SAMESITE='Lax', | ||||
| ) | ||||
|  | ||||
|  | ||||
| lm = LoginManager() | ||||
| lm.login_view = 'web.login' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user