Hi everyone,
While running a security scan on my ERPNext instance, I found the following risks:
Secure cookies not used
CSP is not implemented
HttpOnly cookies not used
Domain not found on the HSTS preload list
CAA not enabled
Can someone please guide me on how to fix these issues in Frappe/ERPNext?
I’d like to know:
-
How to enable Secure and HttpOnly cookies in
site_config.jsonor Nginx. -
How to implement a Content Security Policy (CSP) header safely.
-
How to add my domain to the HSTS preload list.
-
How to enable CAA records in DNS.
Environment details:
-
Frappe/ERPNext Version: 15
-
Deployment: Bench + Nginx
-
OS: Ubuntu 22.04
Any help or example configurations would be appreciated!
