mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-26 13:08:38 -04:00
Add option for CSP frame-ancestors (#7857)
* Add option for CSP frame-ancestors https://github.com/FreshRSS/FreshRSS/discussions/7856 * Revert contentSelectorPreviewAction * Same for f.php and api * Fix double init in f.php * No sandbox for API page
This commit is contained in:
1 parent
f1cf57b5b7
commit
bc3e4c8fa4
10 files changed
+41
-25
No files matched your search
@@ -29,7 +29,7 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController {
|
||||
|
||||
$this->_csp([
|
||||
'default-src' => "'self'",
|
||||
'frame-ancestors' => "'none'",
|
||||
'frame-ancestors' => FreshRSS_Context::systemConf()->attributeString('csp.frame-ancestors') ?? "'none'",
|
||||
'img-src' => '* data: blob:',
|
||||
]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user