tyo0/element: apply hardening

This commit is contained in:
Guanran Wang 2024-08-14 12:36:12 +08:00
parent 9a903869a3
commit 0fed8fd708
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -85,6 +85,10 @@ id.ny4.dev {
element.ny4.dev {
import default
root * @element@
header X-Frame-Options SAMEORIGIN;
header X-Content-Type-Options nosniff;
header X-XSS-Protection "1; mode=block";
header Content-Security-Policy "frame-ancestors 'self'";
file_server
}