Skip to content

Commit 84ea951

Browse files
X-Powered-Byヘッダーを送信しない機能が欲しい fix #4125
1 parent bb3efd9 commit 84ea951

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/baser-core/config/bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,8 @@
7474
Configure::write('App.fullBaseUrl', 'https://localhost');
7575
}
7676

77+
/**
78+
* X-Powered-Byヘッダーを送信を削除
79+
* 脆弱性につながるためPHPバージョンを隠蔽
80+
*/
81+
header_remove('X-Powered-By');

0 commit comments

Comments
 (0)