Solved Post Request (WebRequest)

Discussion in 'Rust Development' started by Maxcloud, Jul 29, 2015.

  1. Hello!

    I am using Laravel 5 to create a web panel and I would like to pass the CSRF token inside the POST request instead of passing a custom api token. I'm wondering if this is possible, an example would be fantastic.

    Thank you in advance.

    CSRF Protection
    http://laravel.com/docs/5.1/routing#csrf-protection

    P.S. I don't want to bypass the CSRF token by excluding the URI. :)
     
    Last edited by a moderator: Jul 29, 2015
  2. Your going to need to bypass the CSRF token by excluding the URI. The token is generated per session/request, this is not known until the webserver returns the response; this token is then used for the next request made.
     
  3. Darn, thanks.