]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/init-website.php
force utf-8 encoding when reading logfile
[nominatim.git] / lib / init-website.php
index eb275af290e8b15b8aa791eddbd3bc72eb859613..013aee4b4a1c07daf07dde2389baff9f85069a11 100644 (file)
@@ -5,6 +5,7 @@
        {
                header("Access-Control-Allow-Origin: *");
                header("Access-Control-Allow-Methods: OPTIONS,GET");
+               header("Access-Control-Max-Age: 8640000");
                if (!empty($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
                {
                        header("Access-Control-Allow-Headers: ".$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);
@@ -12,5 +13,4 @@
        }
        if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
 
-
     header('Content-type: text/html; charset=utf-8');