I'm trying the javascript framework react and I need to fetch a token from an api off this service: https://api.monetizze.com.br/2.1/apidoc/#api-Security-Token. For that, I need to send along with the request my X_CONSUMER_KEY. That's the way I'm trying to do with the axios library:
axios.request('https://api.monetizze.com.br/2.1/token', {
headers: {
'X-Requested-With' : 'XMLHttpRequest',
'X_CONSUMER_KEY': 'here is my key'
}
});
The response I'm getting on the browser console is as follows:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.monetizze.com.br/2.1/token. (Reason: CORS preflight channel did not succeed).
Have you experienced that issue and have solved it? Sorry about my very poor English and thank you very much.