You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
$gmtDate = gmdate("D, d M Y H:i:s");
|
|
|
|
|
header("Expires: {$gmtDate} GMT");
|
|
|
|
|
header("Last-Modified: {$gmtDate} GMT");
|
|
|
|
|
header('Cache-Control: no-store, no-cache, must-revalidate');
|
|
|
|
|
header('Expires: Sun, 1 Jan 2000 12:00:00 GMT');
|
|
|
|
|
header("X-XSS-Protection: 0");
|
|
|
|
|
header('Content-Type: text/html; charset=ISO-8859-1', true);
|
|
|
|
|
|
|
|
|
|
// Esta usando o nginx para todo o processo.
|
|
|
|
|
/*
|
|
|
|
|
* As linhas abaixo s<EFBFBD>o neces<EFBFBD>rias para o funcionamento integrado com o nginx.
|
|
|
|
|
|
|
|
|
|
//$ipAllow = sprintf("http://%s", $_SERVER['SERVER_ADDR'] );
|
|
|
|
|
$ipAllow = sprintf("http://%s", $_SERVER['HTTP_HOST'] );
|
|
|
|
|
header("Access-Control-Allow-Origin: $ipAllow");
|
|
|
|
|
header("Access-Control-Allow-Credentials: true");
|
|
|
|
|
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
|
|
|
|
|
header('Access-Control-Max-Age: 1000');
|
|
|
|
|
header('Access-Control-Allow-Headers: Content-Type, Content-Range, Content-Disposition, Content-Description');
|
|
|
|
|
*/
|
|
|
|
|
?>
|
|
|
|
|
|