mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Enable trusted-types
This commit adds a policy, and make use of it in the Content-Security-Policy. I've tested it the best I could, both on a modern browser supporting trusted-types (Chrome) and on one that doesn't (firefox). Thanks to @lweichselbaum for giving me a hand to wrap this up!
This commit is contained in:
parent
beb8c80787
commit
ed20771194
5 changed files with 20 additions and 4 deletions
|
@ -113,6 +113,7 @@ func GenerateStylesheetsBundles() error {
|
|||
func GenerateJavascriptBundles() error {
|
||||
var bundles = map[string][]string{
|
||||
"app": {
|
||||
"js/tt.js", // has to be first
|
||||
"js/dom_helper.js",
|
||||
"js/touch_handler.js",
|
||||
"js/keyboard_handler.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue