Add security headers
parent
904731e4d7
commit
06b2b1aefa
@ -0,0 +1,17 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: security-headers
|
||||
namespace: default
|
||||
spec:
|
||||
headers:
|
||||
stsSeconds: 15768000
|
||||
contentTypeNosniff: true
|
||||
browserXssFilter: true
|
||||
referrerPolicy: same-origin
|
||||
customFrameOptionsValue: SAMEORIGIN
|
||||
|
||||
customResponseHeaders:
|
||||
X-Robots-Tag: noindex,nofollow
|
||||
X-Download-Options: noopen
|
||||
X-Powered-By: coffee X-Powered-By
|
@ -0,0 +1,18 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: strict-security-headers
|
||||
namespace: default
|
||||
spec:
|
||||
headers:
|
||||
stsSeconds: 15768000
|
||||
contentTypeNosniff: true
|
||||
browserXssFilter: true
|
||||
referrerPolicy: no-referrer
|
||||
frameDeny: true
|
||||
|
||||
customResponseHeaders:
|
||||
X-Robots-Tag: noindex,nofollow
|
||||
X-Download-Options: noopen
|
||||
X-Permitted-Cross-Domain-Policies: none
|
||||
X-Powered-By: coffee X-Powered-By
|
Loading…
Reference in New Issue