Update cors log message

This commit is contained in:
Sheldon Lee 2023-11-13 23:25:32 +08:00
parent a8bc4fd92e
commit a6a4d654d4

View File

@ -15,7 +15,7 @@ function cors() {
// Allow from any origin // Allow from any origin
if (isset($_SERVER['HTTP_ORIGIN'])) { if (isset($_SERVER['HTTP_ORIGIN'])) {
log_print($_SERVER['HTTP_ORIGIN']); log_print("HTTP_ORIGIN: ".$_SERVER['HTTP_ORIGIN']);
// Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one
// you want to allow, and if so: // you want to allow, and if so:
#if ($_SERVER['HTTP_ORIGIN'] !== 'http://app1.localhost') return; #if ($_SERVER['HTTP_ORIGIN'] !== 'http://app1.localhost') return;