mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
fixed security hole that allowed web console in monitor mode
This commit is contained in:
parent
5cbe0ba2b7
commit
c7785ce672
@ -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 New Issue
Block a user