소스 검색

add to local

stanley-king 4 년 전
부모
커밋
0ab9974636
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      helper/fcgi_server.php

+ 2 - 0
helper/fcgi_server.php

@@ -80,6 +80,7 @@ class fcgi_server
 
     public function run_looper()
     {
+        global $SRV_HOST;
         Log::record(__FUNCTION__,Log::DEBUG);
 //        DFAFilter::instance();
         area_helper::instance();
@@ -109,6 +110,7 @@ class fcgi_server
                 {
                     fcgi_header("Content-Type: text/html; charset=UTF-8");
                     fcgi_header("Access-Control-Allow-Credentials: true");
+                    fcgi_header("Access-Control-Allow-Origin: http://localhost:3333");
                     if(self::is_exclude($file)) {
                         include $file;
                     }