Commit 17a1e476 authored by 734642908@qq.com's avatar 734642908@qq.com

e

parent 2d408ccc
......@@ -11,7 +11,10 @@
// 应用入口文件
// 检测PHP环境
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Time, Sercet");
header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE,OPTIONS');
if(strtoupper($_SERVER['REQUEST_METHOD'])== 'OPTIONS') exit;
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment