mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -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:
@@ -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