mardi 3 novembre 2015

Get laravel CSRF token from outside laravel

I need to post a search form from classic asp to a laravel route. I can get the csrf token from the cookie, if there is one and put it into the form, but I don't know what to do if there is no csrf cookie?

Should I open laravel route that returns new csrf token or is that a security risk?

Is the only other option to remove the route I need to post to from csrf validation?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire