L
L
Little Vasya2020-08-24 20:18:25
OAuth
Little Vasya, 2020-08-24 20:18:25

Github Oauth issue cors?

I want to implement authorization through OAuth, I do everything as it is written, I get code , I go to the site, I make a request for a token https://github.com/login/oauth/access_token , it gives an error that the request to sources is blocked
, here is the request for a token

return await Vue.axios({
      url: "https://github.com/login/oauth/access_token",
      method: "POST",
      params: {
        client_id: clientId,
        client_secret: clientSecret,
        code
      }
    });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question