]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/init-website.php
Merge remote-tracking branch 'upstream/master' into cmake-port
[nominatim.git] / lib / init-website.php
index 61a417314ad1fa66ccc4a72e6e91fc43e5c0154a..db03a12ce1b694381412dd8e636e19bad6f4fb3f 100644 (file)
@@ -6,6 +6,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']);
@@ -14,4 +15,3 @@
        if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
 
        header('Content-type: text/html; charset=utf-8');
-