Ability to set the Service-Worker-Allowed header

This commit is contained in:
eugenijm 2021-01-08 12:06:04 +03:00
commit 133644dfa2
4 changed files with 25 additions and 1 deletions

View file

@ -1749,6 +1749,14 @@ config :pleroma, :config_description, [
type: :string,
description: "Adds the specified URL to report-uri and report-to group in CSP header",
suggestions: ["https://example.com/report-uri"]
},
%{
key: :service_worker_allowed,
label: "The Service-Worker-Allowed header",
type: :string,
description:
"Sets the Service-Worker-Allowed header which limits the maximum allowed Service Worker scope",
suggestions: ["/"]
}
]
},