Currently, I am operating on my localhost and have submitted a form to a remote URL. The process unfolds in the following sequence:
- Submission of a form from localhost
- Being redirected to a remote URL
- Sending a response back from the Remote URL to localhost
I have the ability to fetch the localhost header response.
mounted(){
window.axios.get('http://localhost:8080')
.then(function (response) {
console.log(response.headers)
})
}
The issue arises when the response data turns out to be incorrect as it reflects the data within the localhost header. My objective is to retrieve the header response from the remote web URL. Thus, I modified the URL to window.axios.post('remote_url')
However, encountering a CORS privacy error poses a problem.
https://i.sstatic.net/Xnd9k.png
I aim to extract the order_id. Is there any feasible approach to achieve this?