X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8a823d13615d639a55b97c4d19a1bd28aefdb307..1d4dcd914fd277aebf242037064612224f4dde54:/lib/init-website.php diff --git a/lib/init-website.php b/lib/init-website.php index 61a41731..db03a12c 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -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'); -