1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/akkoma_ynh.git synced 2024-09-03 20:36:17 +02:00

Fix media CSP + harden its security

https://github.com/YunoHost-Apps/akkoma_ynh/issues/35#issuecomment-1566672649
This commit is contained in:
lapineige 2023-05-29 15:20:50 +02:00 committed by GitHub
parent 82b42e2aa2
commit 8ee9490602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,6 @@ location / {
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }
location ~ ^/media { location ~ ^/(proxy|media) {
more_set_headers "Content-Security-Policy : script-src 'sandbox';"; more_set_headers "default-src 'none'; upgrade-insecure-requests; sandbox;";
} }