serversideup / roastandbrew

Updated content available! We learned a lot since we originally wrote this article. We now have this updated for Laravel 8, Vue, and NuxtJS 👉 https://srvrsi.de/book
https://srvrsi.de/book
MIT License
300 stars 90 forks source link

Access-Control-Allow-Origin Error #5

Closed marufmax closed 6 years ago

marufmax commented 6 years ago

Issue description

CORS error. Should we use a composer package to resolve or you have anything in your mind?

Environment

OS: Windows Server: Apache Node: v8.9.1 Npm: 6.1.0 Laravel 5.6

jaydrogers commented 6 years ago

Hi @marufmax,

If I remember correctly, I believe sometimes this can be a server configuration issue. Do you have a link where we can replicate the issue?

danpastori commented 6 years ago

Hi @marufmax , this might also help to ensure you have all the headers set up right for sending and receiving API requests: https://github.com/spatie/laravel-cors

jaydrogers commented 6 years ago

I am closing this for inactivity.