Skip to content

Commit 3c2c061

Browse files
committed
非推奨になった'X-Frame-Options: DENY'をCSPに書き換え。
1 parent d8ad81e commit 3c2c061

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

petitnote/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
//Petit Note (c)さとぴあ @satopian 2021-2025
33
//1スレッド1ログファイル形式のスレッド式画像掲示板
4-
$petit_ver='v1.88.6';
4+
$petit_ver='v1.88.7';
55
$petit_lot='lot.20250525';
66

77
$lang = ($http_langs = $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '')
@@ -138,7 +138,7 @@
138138

139139
$x_frame_options_deny = $x_frame_options_deny ?? true;
140140
if($x_frame_options_deny){
141-
header('X-Frame-Options: DENY');
141+
header("Content-Security-Policy: frame-ancestors 'none';");
142142
}
143143
//ダークモード
144144
if(!isset($_COOKIE["p_n_set_darkmode"])&&$darkmode_by_default){

0 commit comments

Comments
 (0)