CSRF令牌在重定向到回调URL后不匹配。

huangapple go评论48阅读模式
英文:

CSRF token mismatch after redirecting to callback URL

问题

我在本地主机上运行一个Laravel项目。我的支付面板想要重定向回我的本地主机验证路由,但我收到了419过期错误。

英文:

I have a laravel project running on my localhost. my payment panel wants to redirect back to my localhost verify route but I get 419 expired error.

答案1

得分: 1

class VerifyCsrfToken extends Middleware
{
/**
* 应该排除在CSRF验证之外的URI。
*
* @var array
*/
protected $except = [
// 你的URL
];
}

英文:
class VerifyCsrfToken extends Middleware
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
      // your url
    ];
}

huangapple
  • 本文由 发表于 2023年4月17日 20:28:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/76035172.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定