My vue script like this :
<script>
export default {
...
methods : {
login() {
// uri -> http://my-app.test/login?email=test@gmail.com&password=1234
this.axios.get(uri).then((response) => {
console.log(response)
...
},
...
}
}
}
</script>
When login method executed, on the console exist error like this :
Failed to load http://my-app.test/login?email=test@gmail.com&password=1234: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
How can I solve the error?