[go: up one dir, main page]

Menu

[55c200]: / config.php  Maximize  Restore  History

Download this file

22 lines (19 with data), 623 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
* NwicodeCMS
*
* @version 1.3.1
* @author Nwicode CMS <support@nwicode.com>
*
* @configuration
*
*/
if (!empty($_SERVER["HTTP_ORIGIN"])) {
header("Access-Control-Allow-Origin: {$_SERVER["HTTP_ORIGIN"]}");
header("Access-Control-Allow-Credentials: true", true);
header("Access-Control-Allow-Methods: GET,PUT,POST,DELETE,OPTIONS", true);
header("Access-Control-Allow-Headers: Origin, X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept, Pragma, Set-Cookie", true);
header("Access-Control-Max-Age: 86400", true);
}
$_config = array();
$_config["environment"] = "production";