blob: 37240b85016349cb984d03542e2945cfd2f92bca [file] [log] [blame]
<?php
header("HTTP/1.1 307 Temporary Redirect");
if ($_GET['mode'] == "anonymous") {
header("Access-Control-Allow-Origin: *");
} else if ($_GET['mode'] == "use-credentials") {
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Origin: " . $_SERVER['HTTP_ORIGIN']);
}
header("Location: ".$_GET["url"]);
?>