Source: theoneamin.medium.com

CORS problem: Laravel- Vue SPA

Category: Laravel, Laravel, PHP, PHP, api, api

Sign in theoneamin 1 day ago· 1 min read So I was recently working on a project where I had a Vue application on the front-end and Laravel in the backend. I was testing the API on different browsers, everything was working perfectly on chrome and when I used Firefox, CORS errors started kicking in. I thought the problem was with Laravel and so I attempted making all kinds of changes to config/cors.php but nothing was solved. Then I saw this post https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSDidNotSucceedAboutWriteHelpLegal
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners