소스 검색

跨域配置

allen 3 년 전
부모
커밋
fd95e681da
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      public/index.php

+ 1 - 0
public/index.php

@@ -4,6 +4,7 @@ namespace think;
 
 use think\admin\service\SystemService;
 
+header("Access-Control-Allow-Origin: *");
 // 加载基础文件
 require __DIR__ . '/../vendor/autoload.php';
 // WEB应用初始化