Commit dfbc8057 by 庄欣

cross field

parent 1c388f91
......@@ -23,7 +23,7 @@ class ControllerBase
{
static $id;
if (!$id) {
$code = request()->header("token");
$code = request()->header("AccessToken");
$client = app("client");
$client->setUrl("user/getid/" . $code);
$client->setMethod("get");
......
......@@ -35,7 +35,7 @@ require __DIR__.'/../bootstrap/autoload.php';
header('Access-Control-Allow-Origin:*' );
header('Access-Control-Allow-Methods:POST,GET,PUT,DELETE');
header('Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept');
header('Access-Control-Allow-Headers:Origin, X-Requested-With, Content-Type, Accept,AccessToken');
$app = require_once __DIR__.'/../bootstrap/app.php';
......
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