stanley-king před 4 roky
rodič
revize
0ab9974636
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;
                     }