From 8a8b109530921ebdc5ecc28bb595b72369d703b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20R=C3=BCthlein?= Date: Sun, 6 Oct 2024 17:03:53 +0200 Subject: [PATCH] fix ip php script --- external/wie-lautet-ip.epwg.de/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/wie-lautet-ip.epwg.de/index.php b/external/wie-lautet-ip.epwg.de/index.php index fdb972c..3afef27 100644 --- a/external/wie-lautet-ip.epwg.de/index.php +++ b/external/wie-lautet-ip.epwg.de/index.php @@ -9,7 +9,7 @@ require '../geoip/geoip2.phar'; use GeoIp2\Database\Reader; -if (strpos($_SERVER['HTTP_REFERER'], 'https://tauri.localhost') == 0) { +if (strpos($_SERVER['HTTP_REFERER'], 'https://tauri.localhost') === 0) { header('Access-Control-Allow-Origin: https://tauri.localhost', false); } else { header('Access-Control-Allow-Origin: https://epwg.de', false);