laravel 5.7.15 419 Sorry, your session has expired. Please refresh and try again

后端 未结 9 730
孤城傲影
孤城傲影 2021-01-18 08:14

Hello i am using laravel 5.7.15 i am facing issue

9条回答
  •  花落未央
    2021-01-18 09:08

    Just in case of dispair and when no other solution Works , you can add your page name here to a White list to the pages that will not be checked with CSRF.

    Needless to say , is a must to remember that with this you are removing this security check , use it wisely and at your own criteria

    you can find it here : app/Http/Middleware/VerifyCsrfToken.php

      /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        '/nameofpagetobeexcluded','/anotherpagetobeexcludedfromthischeck'
    
    ];
    

提交回复
热议问题