Reorganize Miniflux CSP

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-06-29 16:54:37 -07:00 committed by GitHub
parent e48e0a1096
commit b5a6386526
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,9 +19,9 @@ server {
include snippets/proxy.conf;
proxy_hide_header Content-Security-Policy;
add_header Content-Security-Policy "default-src 'none'; connect-src 'self'; frame-src *; img-src *; manifest-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; block-all-mixed-content; base-uri 'none'";
add_header Content-Security-Policy "default-src 'none'; connect-src 'self'; frame-src *; img-src *; manifest-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; base-uri 'none'; block-all-mixed-content; form-action 'none'; frame-ancestors 'self'; upgrade-insecure-requests";
location / {
proxy_pass http://127.0.0.1:8080;
}
}
}