Here is my Vue script:
<script>
export default {
...
methods : {
login() {
// uri -> http://my-app.test/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="472b28202e2978222a262e2b7a3322343307202a262e2b6924282a">[email protected]</a>&password=1234
this.axios.get(uri).then((response) => {
console.log(response)
...
},
...
}
}
}
</script>
Upon executing the login method, I encountered an error in the console:
Failed to load http://my-app.test/[email protected]&password=1234: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
I am seeking a solution to resolve this error. Any suggestions?