1
1
1thater2020-10-02 08:04:09
JavaScript
1thater, 2020-10-02 08:04:09

How to deal with an error when receiving a BearerToken from ABBYY lingvo?

Their documentation is https://developers.lingvolive.com/en-us/Help .

I make a request:

const getBearerToken = async () => {
  const response = await fetch('https://developers.lingvolive.com/api/v1.1/authenticate', {
    method: 'POST',
    headers: {
      'Authorization': `Basic {${API_KEY}}`,
    },
  }).catch(err => console.error(err));

  console.log(response);
};
  
getBearerToken();


In the console I see the following: The
H9sWa.png
request was blocked due to cors policy - how can I fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis00211, 2020-10-02
@1thater

Cors is not configured on the server you are contacting, which allow you to receive (send, etc.) data through the browser, so you will have to deploy a backing that will contact this address

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question