X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fplayvideos%2FREADME.md;fp=plugins%2Fplayvideos%2FREADME.md;h=b1698470755d1d7adff2e91528f57518d14afbda;hb=8025c63906eab4091b75ec0beac06b3a5837d31b;hp=54729e0be5ea14d86169852d2b1d6cc94309d7da;hpb=a33c574461cd082588b11b8843fe8fd7f92e3fe6;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/playvideos/README.md b/plugins/playvideos/README.md index 54729e0b..b1698470 100644 --- a/plugins/playvideos/README.md +++ b/plugins/playvideos/README.md @@ -14,8 +14,16 @@ This is a default Shaarli plugin, you just have to enable it. See https://github #### Troubleshooting If your server has [Content Security Policy](http://content-security-policy.com/) headers enabled, this may prevent the script from loading fully. You should relax the CSP in your server settings. Example CSP rule for apache2: -`Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'"` +In `/etc/apache2/conf-available/shaarli-csp.conf`: + +```apache + + Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'" + +``` + +Then run `a2enconf shaarli-csp; service apache2 reload` ### License ```