]> git.openstreetmap.org Git - nominatim.git/commitdiff
add max age for access control headers
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 24 May 2013 21:50:18 +0000 (23:50 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 24 May 2013 21:50:18 +0000 (23:50 +0200)
lib/init-website.php

index eb275af290e8b15b8aa791eddbd3bc72eb859613..4d1c2c7029a1cdc00b999b5c0c748eb27a517cd7 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']);