I am running on my localhost and then I submitted the form to a remote url. So, the procedure will be the following:
- Submit a form from localhost
- It will be redirected to remote URL
- from Remote URL, it will send a response back to the localhost
I can retrieve the localhost header response.
mounted(){
window.axios.get('http://localhost:8080')
.then(function (response) {
console.log(response.headers)
})
}
But, the response data is not correct since it is the data inside the localhost header. What I want is to retrieve the header response from remote(web) url. So, I changed the URL window.axios.post('remote_url')
But the problem is, there is a CORS privacy error.
I want to get the order_id. Is there a way to do this?