Skip to content

Commit

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

// 返回数据给前端
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($tempKeys);

0 comments on commit 829d6f3

Please sign in to comment.