0👍
CORS considers the port as part of the origin, so localhost:5000
and localhost:8080
are considered different origins here.
You might want to consider something like this which will allow you to use the same origin/domain for both the frontend code and the API during development: https://vuejs-templates.github.io/webpack/proxy.html
- [Vuejs]-Creating a search bar using Laravel and Vue JS (Vuetify Framework) – resulting in error 'Cannot read property 'protocol' of undefined'
- [Vuejs]-<li> be moved to another <ul> by vue
Source:stackexchange.com