mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added following security enhancements:
1) Added ALLOWED_HOSTS list to limit the host address. 2) Added CSP and HSTS security header. 3) Hide the webserver/ development framework version. Fixes #5919
This commit is contained in:
committed by
Akshay Joshi
parent
3413a42af4
commit
08c4deba5a
@@ -311,7 +311,11 @@ class ManagedSessionInterface(SessionInterface):
|
||||
response.set_cookie(
|
||||
app.session_cookie_name,
|
||||
'%s!%s' % (session.sid, session.hmac_digest),
|
||||
expires=cookie_exp, httponly=True, domain=domain
|
||||
expires=cookie_exp,
|
||||
secure=config.SESSION_COOKIE_SECURE,
|
||||
httponly=config.SESSION_COOKIE_HTTPONLY,
|
||||
samesite=config.SESSION_COOKIE_SAMESITE,
|
||||
domain=domain
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user