Can someone assist me in resolving the CORS policy issue I am facing? This problem occurs when I attempt to make a GET request to the applications endpoint, and it seems to only happen when accessing from http://localhost:8080/ - the request works fine in production.
Here is my vue.config.js file:
module.exports = {
devServer: {
proxy: 'https://spinstatus.zenoss.io/'
}
}
Request Method:
const grabApps = async () => {
const res = await axios({
method: 'get',
url: `${spinnakerURL}/gate/applications`,
withCredentials: false,
crossdomain: true,
headers: {
'Access-Control-Allow-Origin': '*',
}
});
return res.data || []
}