From a6a4d654d485bbbf1ee7fbac3f582e83190b93bb Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 13 Nov 2023 23:25:32 +0800 Subject: [PATCH] Update cors log message --- php/cors.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/cors.php b/php/cors.php index 58dc1a8..ef22610 100644 --- a/php/cors.php +++ b/php/cors.php @@ -15,7 +15,7 @@ function cors() { // Allow from any 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 // you want to allow, and if so: #if ($_SERVER['HTTP_ORIGIN'] !== 'http://app1.localhost') return;