diff options
| author | 2025-09-21 13:29:58 +0200 | |
|---|---|---|
| committer | 2025-09-21 13:29:58 +0200 | |
| commit | bc3e4c8fa4bae9591166e12caa3fb6bf73893102 (patch) | |
| tree | ee38afd776e08461ba22bdbc10fe4c17d5bff172 /p/ext.php | |
| parent | f1cf57b5b713527b4521c4552b5f1ac023ee3adc (diff) | |
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
Diffstat (limited to 'p/ext.php')
| -rw-r--r-- | p/ext.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -94,7 +94,8 @@ if (!is_valid_path($absolute_filename)) { $content_type = FreshRSS_extension_Controller::MIME_TYPES[$file_type]; header("Content-Type: {$content_type}"); header("Content-Disposition: inline; filename='{$file_name}'"); -header("Content-Security-Policy: default-src 'self'; frame-ancestors 'none'"); +header("Content-Security-Policy: default-src 'self'; frame-ancestors " . + (FreshRSS_Context::systemConf()->attributeString('csp.frame-ancestors') ?? "'none'")); header('X-Content-Type-Options: nosniff'); header('Referrer-Policy: same-origin'); |
