diff options
| author | 2025-08-11 19:35:54 +0200 | |
|---|---|---|
| committer | 2025-08-11 19:35:54 +0200 | |
| commit | 7df6c201f2e6a6521d20718dfd8d9794c7437d1f (patch) | |
| tree | fbd88eb2c462808b16e9ee476b3c619e3b2bb20c /app/Controllers/statsController.php | |
| parent | 2b1b268fc27268197b8c86ed839bf22daab79438 (diff) | |
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
Diffstat (limited to 'app/Controllers/statsController.php')
| -rw-r--r-- | app/Controllers/statsController.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Controllers/statsController.php b/app/Controllers/statsController.php index 67b1f80e9..5a7e9b79a 100644 --- a/app/Controllers/statsController.php +++ b/app/Controllers/statsController.php @@ -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(); |
