mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-24 12:08:33 -04:00
Put CSP everywhere (#7810)
* Puts CSP everywhere in `p/api`
* including the HTML query page ❗
* Also in `p/ext.php`
* Puts `X-Content-Type-Options: nosniff` everywhere
* Fixes custom icon configuration not showing `blob:` icon in statsController (idle feeds)
* Also removes `style-src 'unsafe-inline'` since it doesn't seem to be needed
* Improves CSP of `p/f.php`
* Add `sandbox` directive
This commit is contained in:
1 parent
2b1b268fc2
commit
7df6c201f2
9 files changed
+22
-4
No files matched your search
@@ -30,8 +30,7 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController {
|
||||
$this->_csp([
|
||||
'default-src' => "'self'",
|
||||
'frame-ancestors' => "'none'",
|
||||
'img-src' => '* data:',
|
||||
'style-src' => "'self' 'unsafe-inline'",
|
||||
'img-src' => '* data: blob:',
|
||||
]);
|
||||
|
||||
$catDAO = FreshRSS_Factory::createCategoryDao();
|
||||
|
||||
Reference in new issue
Block a user