Can you show your middleware?
Also: Does it work if you comment out the VerifyCsrfToken Middleware in the Kernel.php file?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I am creating an API that will send data to my Unity 3D game, but when I am posting my API in C # I can't send the csrf_token () field, which gives me the 419 response error, I put the route in question except in the VerifyCsrfToken middleware, then returns me error 500. what would be a solution to submit my request?
Are you using the web routes? Sounds like you may be better using api routes if I have understood what you're trying to achieve correctly.
Please or to participate in this conversation.