添加跨域
添加服务后台添加
This commit is contained in:
@@ -14,6 +14,10 @@ namespace think;
|
||||
use think\exception\ValidateException;
|
||||
use traits\controller\Jump;
|
||||
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
|
||||
header("Access-Control-Allow-Headers: Content-Type, Authorization, version");
|
||||
|
||||
class Controller
|
||||
{
|
||||
use Jump;
|
||||
|
||||
Reference in New Issue
Block a user