title: Fetch from vueJs to Spring Data
body: <p>As part of my studies, I am currently developing a spring/vueJS application.</p>
  <p>After installing and configuring Spring Security, everything happens as expected : a token is generated when a user logs in, and I can reuse this token during my requests.</p>
  <p>When I try with Postman, everything works for the best.
  <a href="https://i.stack.imgur.com/kMr6s.png" rel="nofollow noreferrer">postman screenshot</a></p>
  <p>But in my front, with Vue, I systematically get a 403 error, even by entering the token manually as here :</p>
  <pre><code>fetch(&quot;http://localhost:9090/userByEmail?email=&quot;+this.state.userdata.email,{
              method: 'GET',
              mode : 'no-cors',
              headers: { 
              'Accept': 'application/json', 
              'Content-Type': 'application/json',
              'Authorization': 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzQGQuYmUiLCJhdXRob3JpdGllcyI6W10sImlhdCI6MTYzODc4Mjg1OCwiZXhwIjoxNjM5OTU0ODAwfQ.3NH_UPZpWilgsy5TAhBHE6C8d4KDZq8-ucZisxDK25w'
              }
        })
  </code></pre>
  <p>From the error in chrome dev tools, I have the impression that my header 'Authorization' is not taken into consideration.</p>
  <p><a href="https://i.stack.imgur.com/wykCg.png" rel="nofollow noreferrer">chrome dev tools screenshot</a></p>
  <p>Is there a header or something I forgot?</p>
  <p>Thanks for the help</p>