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:
Mcat12
2016-12-10 11:47:47 -05:00
committed by GitHub
parent d2f4753cfc
commit 8cf7e262a2
+1 -3
View File
@@ -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) {