Commit bbfab218 authored by huanle's avatar huanle

0521_

parent f18eea0e
......@@ -26,6 +26,9 @@
*/
function code($sendData = [], $errCode = 0, $errMsg = '')
{
header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");
header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, Accept-Language, Origin, Accept-Encoding");
$_errCode = $errCode;
$_errMsg = $errMsg;
......
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