I should have probably update the progress that I had made with issue just in case anyone is still experiencing issues with jwt and laravel. I would also like thank you guys for contributing to this discussion as It was all very helpful. While trying to build my api I found a few cool...
I had no error message until this morning. I tried to change my working branch and to get back to my master branch in PHPStorm. When doing this I got the error 'Couldn't checkout to master, unable to unlink old "vendor/barryvdh/laravel-cors/composer.json" ' I look into it and comp...
Conveniently, this avoids CORS issues and error messages like this in development:Fetch API cannot load http://localhost:4000/api/todos. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque ...
This allows me to rely on the default Laravel implementation for default headers in bootstrap.js and then every time I make an external API request, I use this: // temporarily wipe 'X-CSRF-TOKEN' header for Google CORS const instance = axios.create(); instance.defaults.headers.common = ...