刘桂岩 5 lat temu
rodzic
commit
7057edc9d5
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      thinkphp/library/think/Controller.php

+ 1 - 2
thinkphp/library/think/Controller.php

@@ -56,8 +56,7 @@ class Controller
         header('Access-Control-Allow-Origin:*');
         header('Access-Control-Allow-Credentials:true');
         header('Access-Control-Allow-Method:POST,GET');
-        header('hospital');
-        header('Access-Control-Allow-Headers:x-requested-with, content-type');
+        header('Access-Control-Allow-Headers:x-requested-with, content-type,hospital');
         $this->view    = View::instance(Config::get('template'), Config::get('view_replace_str'));
         $this->request = is_null($request) ? Request::instance() : $request;