fix: add permissions-policy header (#1059)

This commit is contained in:
Livio Amstutz
2020-12-07 09:00:31 +01:00
committed by GitHub
parent 300ade66a7
commit 6d210c3f00
2 changed files with 2 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ func (h *headers) ServeHTTP(w http.ResponseWriter, r *http.Request) {
headers.Set(http_utils.XContentTypeOptions, "nosniff")
headers.Set(http_utils.ReferrerPolicy, "same-origin")
headers.Set(http_utils.FeaturePolicy, "payment 'none'")
headers.Set(http_utils.PermissionsPolicy, "payment=()")
//PLANNED: add expect-ct
h.handler.ServeHTTP(w, r)