From: Sarah Hoffmann Date: Fri, 24 May 2013 21:50:18 +0000 (+0200) Subject: add max age for access control headers X-Git-Tag: deploy~606 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/4e5b08053a5186715368d31bca769d5f02b15b0a?ds=inline add max age for access control headers --- diff --git a/lib/init-website.php b/lib/init-website.php index eb275af2..4d1c2c70 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']);