简体   繁体   English

苹果登录在 laravel 回调 function 中返回 419 错误

[英]apple sign in is returning 419 error in laravel on callback function

I am working on login with apple using laravel framework using refrence GeneaLabs/laravel-sign-in-with-apple .我正在使用 laravel 框架使用参考GeneaLabs/laravel-sign-in-with-apple 登录苹果 I have followed all the steps carefully.after login function when callback function is run by apple it gives me error code 419 ie issue of missing csrf token.我已仔细执行所有步骤。登录 function 后,当回调 function 由苹果运行时,它给了我错误代码 419,即缺少 csrf 令牌的问题。 So, The apple is hitting callback function without csrf token.因此,苹果在没有 csrf 令牌的情况下点击回调 function。

Here is error image: click here to see error image这是错误图像:单击此处查看错误图像

Try with this in your web.php:在你的 web.php 中试试这个:

Route::get('/', function () {
    return view('auth.login');
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM