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:
parent
82b42e2aa2
commit
8ee9490602
1 changed files with 2 additions and 2 deletions
|
@ -36,6 +36,6 @@ location / {
|
|||
include conf.d/yunohost_panel.conf.inc;
|
||||
}
|
||||
|
||||
location ~ ^/media {
|
||||
more_set_headers "Content-Security-Policy : script-src 'sandbox';";
|
||||
location ~ ^/(proxy|media) {
|
||||
more_set_headers "default-src 'none'; upgrade-insecure-requests; sandbox;";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue