Commit 30c68f15 authored by hujun's avatar hujun

跨域问题

parent 54e668db
...@@ -363,6 +363,7 @@ class Broker extends Basic ...@@ -363,6 +363,7 @@ class Broker extends Basic
* @return \think\Response * @return \think\Response
*/ */
public function token(){ public function token(){
header('Access-Control-Allow-Origin:*');
$jwt = new JwtUntils(); $jwt = new JwtUntils();
$data['phone'] = $this->params['phone']; $data['phone'] = $this->params['phone'];
$token = $jwt->createToken($data); $token = $jwt->createToken($data);
......
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