Browse Source

跨域配置

allen 3 năm trước cách đây
mục cha
commit
fd95e681da
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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应用初始化