📜  Laravel API 端点“401 Unauthorized”在服务器上但在本地主机上运行良好 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:36.391000             🧑  作者: Mango

代码示例1
add this following code in .htaccess file
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]