Commit fc723239 authored by tufengqi's avatar tufengqi

add fzm cross header

parent 059682e4
...@@ -16,6 +16,15 @@ class ResponseMsg ...@@ -16,6 +16,15 @@ class ResponseMsg
public function __construct() public function __construct()
{ {
$this->header_list = self::$default_header_list; $this->header_list = self::$default_header_list;
$this->fzmCrossHeader();
}
public function fzmCrossHeader()
{
$this->header('Access-Control-Allow-Origin', '*');
$this->header('Access-Control-Allow-Methods', 'POST,GET');
$this->header('Access-Control-Allow-Credentials', 'true');
$this->header('Access-Control-Allow-Headers', 'Authorization,FZM-REQUEST-OS,FZM-USER-IP,FZM-REQUEST-UUID,Content-Type,Content-Length');
} }
public static function setDefaultHeader($default_header_list) public static function setDefaultHeader($default_header_list)
......
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