mirror of
https://github.com/pi-hole/web.git
synced 2026-06-05 15:35:35 +01:00
Remove CORS skip log message
It can fill up the error log really quickly, since this function is now used on all pages. Most of these pages are not able to be protected by CORS but can still be protected by the Host check.
This commit is contained in:
+1
-3
@@ -39,9 +39,7 @@ function check_cors() {
|
||||
}
|
||||
header("Access-Control-Allow-Origin: ${_SERVER['HTTP_ORIGIN']}");
|
||||
}
|
||||
else {
|
||||
pi_log("CORS skipped, unknown HTTP_ORIGIN");
|
||||
}
|
||||
// If there's no HTTP_ORIGIN, CORS should not be used
|
||||
}
|
||||
|
||||
function check_csrf($token) {
|
||||
|
||||
Reference in New Issue
Block a user