[Vuejs]-Laravel and vue โ€“ VerifyCsrfToken except don't working

0๐Ÿ‘

I made it in VerifyCsrfToken.php Middleware:

class VerifyCsrfToken extends Middleware
{    
    protected $except = [
        'api/*',
    ];
}

and all routes I trasformed from /presenze/* in /api/*
Now it works fine.
I think it need to be called with the standard /api/ prefix โ€ฆ I think.
Do you know another explanation? If anyone knows, your intervention is welcome.

Leave a comment