Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add "Content-Security-Policy: frame-ancestors 'self'" to view headers…
… (CO-2705) (#65)
arlen committed Dec 20, 2024
1 parent 4db9fd8 commit 1a96837
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/templates/layout/default.php
@@ -31,6 +31,7 @@
header("Expires: Thursday, 10-Jan-69 00:00:00 GMT");
header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
header("Pragma: no-cache");
header("Content-Security-Policy: frame-ancestors 'self'");

// Add X-UA-Compatible header for IE
if(isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) {
2 changes: 2 additions & 0 deletions app/templates/layout/error.php
@@ -12,6 +12,8 @@
* @since 0.10.0
* @license https://opensource.org/licenses/mit-license.php MIT License
*/

header("Content-Security-Policy: frame-ancestors 'self'");
?>
<!DOCTYPE html>
<html>

0 comments on commit 1a96837

Please sign in to comment.