我正在使用 laravel 框架使用 refrence GeneaLabs/laravel-sign-in-with-apple 登录苹果。 我已经仔细地遵循了所有步骤。在登录函数后,当回调函数由苹果运行时,它给我错误代码 419,即缺少 csrf 令牌的问题。 所以,苹果正在点击没有 csrf 令牌的回调函数。
这是错误图像: click here to see error image
在你的 web.php 中试试这个:
Route::get('/',function () { return view('auth.login'); });