fileOut($_GET, $_SERVER); if (in_array($_SERVER['HTTP_ORIGIN'] ?? null, [ 'https://admin.sandn.net', 'https://dev.thegenealogist.co.uk', 'https://www.thegenealogist.co.uk', 'https://www.thegenealogist.com', 'https://www-thegenealogist-co-uk.eu1.proxy.openathens.net', ])) { $v['header'][] = 'Access-Control-Allow-Origin: '.$_SERVER['HTTP_ORIGIN']; } $Server->appHeader($v); } catch (Exception $e) { http_response_code(500); $ravenClient->captureException($e); }