Skip to content

Commit

Permalink
fix ip php script
Browse files Browse the repository at this point in the history
  • Loading branch information
unverbuggt committed Oct 6, 2024
1 parent daa29b1 commit 8a8b109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/wie-lautet-ip.epwg.de/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8a8b109

Please sign in to comment.