]> git.openstreetmap.org Git - nominatim.git/blob - lib/init-website.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib / init-website.php
1 <?php
2         require_once('init.php');
3
4         if (CONST_NoAccessControl)
5         {
6                 header("Access-Control-Allow-Origin: *");
7                 header("Access-Control-Allow-Methods: OPTIONS,GET");
8                 if (!empty($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
9                 {
10                         header("Access-Control-Allow-Headers: ".$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);
11                 }
12         }
13         if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
14
15
16     header('Content-type: text/html; charset=utf-8');