Commit 39626816 authored by tufengqi's avatar tufengqi

fix header

parent 710de731
......@@ -138,10 +138,10 @@ class ResponseApi
public static function printOldFail($code, $code_msg, $detail_code, $detail_msg, $callback_key = '')
{
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST,GET');
header('Access-Control-Allow-Credentials:true');
header('Access-Control-Allow-Headers: Authorization,FZM-REQUEST-OS,FZM-USER-IP,FZM-REQUEST-UUID,Content-Type,Content-Length');
self::header('Access-Control-Allow-Origin', '*');
self::header('Access-Control-Allow-Methods', 'POST,GET');
self::header('Access-Control-Allow-Credentials', 'true');
self::header('Access-Control-Allow-Headers', 'Authorization,FZM-REQUEST-OS,FZM-USER-IP,FZM-REQUEST-UUID,Content-Type,Content-Length');
$callback = '';
if ($callback_key) {
$callback = $_GET[$callback_key] ?? '';
......@@ -164,10 +164,10 @@ class ResponseApi
*/
public static function printOldSuccess($success_data, $callback_key = '')
{
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST,GET');
header('Access-Control-Allow-Credentials:true');
header('Access-Control-Allow-Headers: Authorization,FZM-REQUEST-OS,FZM-USER-IP,FZM-REQUEST-UUID,Content-Type,Content-Length');
self::header('Access-Control-Allow-Origin', '*');
self::header('Access-Control-Allow-Methods', 'POST,GET');
self::header('Access-Control-Allow-Credentials', 'true');
self::header('Access-Control-Allow-Headers', 'Authorization,FZM-REQUEST-OS,FZM-USER-IP,FZM-REQUEST-UUID,Content-Type,Content-Length');
$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