当我打印标题时,得到的响应是
{
"Host": "laravel.smartwiztech.com",
"Connection": "keep-alive",
"Accept": "application/json",
"Cache-Control": "no-cache",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"Postman-Token": "f3d4fcc7-c795-19b6-0beb-9bbe2340b527",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8"
}
当我放置另一个标题而不是授权时,它可以工作。但是问题在于护照需要授权标头来验证访问令牌。