mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 21:34:35 -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:
committed by
GitHub
parent
f1cf57b5b7
commit
bc3e4c8fa4
@@ -48,7 +48,7 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
|
||||
|
||||
$this->_csp([
|
||||
'default-src' => "'self'",
|
||||
'frame-ancestors' => "'none'",
|
||||
'frame-ancestors' => FreshRSS_Context::systemConf()->attributeString('csp.frame-ancestors') ?? "'none'",
|
||||
'img-src' => "'self' blob:",
|
||||
]);
|
||||
|
||||
@@ -118,7 +118,7 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
|
||||
|
||||
$this->_csp([
|
||||
'default-src' => "'self'",
|
||||
'frame-ancestors' => "'none'",
|
||||
'frame-ancestors' => FreshRSS_Context::systemConf()->attributeString('csp.frame-ancestors') ?? "'none'",
|
||||
'img-src' => "'self' blob:",
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user