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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners