Commit 5a6fb184 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

fix See merge request !378
parents b691727f 96422613
...@@ -55,7 +55,7 @@ class BaseController extends Controller ...@@ -55,7 +55,7 @@ class BaseController extends Controller
// if (!in_array($origin, $allow_list)) { // if (!in_array($origin, $allow_list)) {
// $origin = implode(',', $allow_list); // $origin = implode(',', $allow_list);
// } // }
$this->header('Access-Control-Allow-Origin', $origin); // $this->header('Access-Control-Allow-Origin', $origin);
$this->header('Access-Control-Allow-Methods', 'POST,GET,OPTIONS,PUT,DELETE'); $this->header('Access-Control-Allow-Methods', 'POST,GET,OPTIONS,PUT,DELETE');
$this->header('Access-Control-Allow-Credentials', 'true'); $this->header('Access-Control-Allow-Credentials', 'true');
$this->header('Access-Control-Allow-Headers', 'Authorization,FZM-REQUEST-OS,FZM-USER-IP,FZM-REQUEST-UUID,FZM-PLATFORM-ID,Content-Type,Content-Length'); $this->header('Access-Control-Allow-Headers', 'Authorization,FZM-REQUEST-OS,FZM-USER-IP,FZM-REQUEST-UUID,FZM-PLATFORM-ID,Content-Type,Content-Length');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment