REST - Cors Errors

I’m having a lot of problems with CORS errors, I use a Laravel backend with requests using POST, but I’m getting CORS error,

Hi Alisson
We’re here to help! :slight_smile:
Could you maybe post some more information about the errors you’re getting? Maybe you could copy&paste the errors messages and/or post some screenshots of what you’re seeing when it happens?

Best regards, Victor from Noodl

It’s likely that Laraval is setup to not accept requests directly from web browsers. Try adding a CORS middleware like this: GitHub - fruitcake/laravel-cors: Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application

1 Like