I have local app. What I've tried so far
Installed CORS extension (helped me to get token from back-end without being blocked)
I had to pass this token as X-API-Token to call my next API but I get error written in title.
I tried to pass to headers
axios.get( `/booking/`, { headers:
{
'X-API-Token': state.session.token,
'Access-Control-Allow-Origin':'*',
'Access-Control-Allow-Methods': 'GET',
'Access-Control-Allow-Headers': 'Origin, Content-Type, X-API-Token'
}
})
Also doesn't work. I don't have access to server side. Is there any way handling it from Front-end? Or at least not blocked from localhost for now?