title: Token request to keycloak behind docker, curl works, reactjs does not
body: <p>Following situation:</p>
  
  <p>Keycloak server is setup with docker compose (<a href="http://127.0.0.1:8083" rel="nofollow noreferrer">http://127.0.0.1:8083</a>)</p>
  
  <p>When I do this:</p>
  
  <pre><code>curl --data "grant_type=password&amp;client_id=account&amp;username=dr&amp;password=dr" http://127.0.0.1:8083/auth/realms/xxx/protocol/openid-connect/token 
  </code></pre>
  
  <p>it works. </p>
  
  <p>Then I try to do the same on react.js with following:</p>
  
  <pre><code>axios.post(kc.authServerUrl + "/realms/xxx/protocol/openid-connect/token", {
      grant_type: 'password',
      client_id: 'account',
      username: 'dr',
      password: 'dr'
  }
  )
  .then(function (response) {
      console.log(response);
  })
  .catch(function (error) {
      console.log(error);
  });
  </code></pre>
  
  <p>And it does not work. I get the following:</p>
  
  <p><a href="https://i.stack.imgur.com/e5lRS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e5lRS.png" alt="enter image description here"></a></p>
  
  <p>Sidenotes:
  On keycloak I have set allow origin from *
  Also strange: I see user has opened sessions from ip 172.17.0.1 (that is I guess caused by curl)</p>
  
  <p>Question: How to make it work from react.js? 
  Question 2: Why is it working from curl and not with axios?</p>