Skip to content

Commit

Permalink
Update sts-auth.php
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed May 28, 2018
1 parent 829d6f3 commit 973c7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/sts-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,6 @@ function obj2str($obj)

// 返回数据给前端
header('Content-Type: application/json');
header('Allow-Control-Allow-Origin: http://127.0.0.1'); // 这里修改允许跨域访问的网站
header('Allow-Control-Allow-Headers: origin,accept,content-type');
header('Access-Control-Allow-Origin: http://127.0.0.1'); // 这里修改允许跨域访问的网站
header('Access-Control-Allow-Headers: origin,accept,content-type');
echo json_encode($data);

0 comments on commit 973c7fe

Please sign in to comment.