mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
fixed security hole that allowed web console in monitor mode
This commit is contained in:
parent
5cbe0ba2b7
commit
c7785ce672
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
|||
require_once 'config.php';
|
||||
require_once RASPI_CONFIG.'/raspap.php';
|
||||
|
||||
if (RASPI_MONITOR_ENABLED) {
|
||||
die();
|
||||
};
|
||||
|
||||
session_start();
|
||||
header('X-Frame-Options: SAMEORIGIN');
|
||||
header("Content-Security-Policy: default-src 'none'; frame-src 'self'; connect-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'");
|
||||
|
|
Loading…
Reference in a new issue