Browse Source

no header

star7th 5 years ago
parent
commit
9ee5be9371
1 changed files with 0 additions and 7 deletions
  1. 0 7
      server/Application/Api/Controller/BaseController.class.php

+ 0 - 7
server/Application/Api/Controller/BaseController.class.php

@@ -98,13 +98,6 @@ class BaseController extends Controller {
 			header('Access-Control-Allow-Credentials: true');//允许跨域请求
 		}
 
-		//来自Html5Plus的应用允许跨域
-		if (strstr($_SERVER['HTTP_USER_AGENT'], "Html5Plus") ) {
-			header('Access-Control-Allow-Origin: *');//允许跨域请求
-			header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Connection, User-Agent, Cookie');
-			header('Access-Control-Allow-Credentials : true');//允许跨域请求
-		}
-
 		echo json_encode($result);
 
 		//如果开启API调试模式,则记录请求参数和返回结果