X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9054b865c09723ff95be6a8c87f4a8b98b4cf318..25db5f271addc4ff5aa2d3b32f1582c48dca3405:/lib/init-website.php?ds=sidebyside diff --git a/lib/init-website.php b/lib/init-website.php index eb275af2..013aee4b 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -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');