feat: add security headers middleware
Co-authored-by: aider (openai/qwen2.5-coder:32b) <aider@aider.chat>
This commit is contained in:
@@ -11,3 +11,16 @@ spec:
|
||||
X-XSS-Protection: "1; mode=block"
|
||||
Referrer-Policy: no-referrer-when-downgrade
|
||||
Content-Security-Policy: default-src 'self'
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: wordpress-security-headers
|
||||
namespace: wordpress
|
||||
spec:
|
||||
headers:
|
||||
customResponseHeaders:
|
||||
X-Frame-Options: "SAMEORIGIN"
|
||||
X-XSS-Protection: "1; mode=block"
|
||||
X-Content-Type-Options: "nosniff"
|
||||
Referrer-Policy: "no-referrer-when-downgrade"
|
||||
Content-Security-Policy: "default-src 'self'; script-src 'self' https://*.google-analytics.com; object-src 'none'"
|
||||
|
||||
Reference in New Issue
Block a user