查看laravel.log后,出现两个错误。
1。
[2020-05-25 01:47:22] local.ERROR: The resource owner or authorization server denied the request.
{"exception":"[object (League\\OAuth2\\Server\\Exception\\OAuthServerException(code: 9)
2。
(InvalidArgumentException(code: 0): The JWT string must have two dots at
/Applications/XAMPP/xamppfiles/htdocs/highrjobsadminlte/vendor/lcobucci/jwt/src/Parser.php:95)
我认为第一个错误可能与我创建的令牌过期有关,但是我更改了令牌,但仍收到此错误。我尝试使用谷歌搜索这些错误,但我不知道如何解决。
是否有人部署了Laravel,Vue js和Laravel Passport SPA,并在部署到Live Hosting Server时遇到了这些问题?
答案 0 :(得分:0)
在部署之前执行npm run build
。然后在您的nginx / apache2配置上将根目录设置为dist/index.html
。