Skip to content

Commit

Permalink
fix: add permissions-policy header (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
livio-a committed Dec 7, 2020
1 parent 300ade6 commit 6d210c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/api/http/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
XContentTypeOptions = "x-content-type-options"
ReferrerPolicy = "referrer-policy"
FeaturePolicy = "feature-policy"
PermissionsPolicy = "permissions-policy"

ZitadelOrgID = "x-zitadel-orgid"
)
Expand Down
1 change: 1 addition & 0 deletions internal/api/http/middleware/security_headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d210c3

Please sign in to comment.