We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 303f93c commit 17c3fe5Copy full SHA for 17c3fe5
infra/fastly/terraform/dl.k8s.io/vcl/binaries.vcl
@@ -109,6 +109,17 @@ sub vcl_hit {
109
110
sub vcl_deliver {
111
112
+ set resp.http.Content-Security-Policy = "default-src 'self'";
113
+ set resp.http.X-Frame-Options = "SAMEORIGIN";
114
+ set resp.http.X-XSS-Protection = "1";
115
+ set resp.http.X-Content-Type-Options = "nosniff";
116
+ set resp.http.Referrer-Policy = "origin-when-cross-origin";
117
+
118
+ if (req.protocol == "https") {
119
+ # Only connect to this site and subdomains via HTTPS for the next two years
120
+ set resp.http.Strict-Transport-Security = "max-age=63072000; includeSubDomains";
121
+ }
122
123
if (resp.http.cache-control:max-age) {
124
unset resp.http.expires;
125
}
0 commit comments