Commit 7cb268f3 authored by tufengqi's avatar tufengqi

fzm common header

parent d1868c8d
......@@ -180,10 +180,7 @@ class ResponseMsg
public function printOldFail($code, $code_msg, $detail_code, $detail_msg, $callback_key = '')
{
$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');
$this->fzmCrossHeader();
$callback = '';
if ($callback_key) {
$callback = $_GET[$callback_key] ?? '';
......@@ -210,10 +207,7 @@ class ResponseMsg
*/
public function printOldSuccess($success_data, $callback_key = '')
{
$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');
$this->fzmCrossHeader();
$callback = '';
if ($callback_key) {
$callback = $_GET[$callback_key] ?? '';
......
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