title: Axios get request response with 403 error forbidden
body: <p>I'm new  in react . Trying to make "get" request and getting 403 error forbidden, "Response for preflight does not have HTTP ok status.". In network tab in Request Method instead of "get" method shows "options". What could be the problem? Cors already open , problem with token </p>
  
  <pre><code>let token = localStorage.getItem("token")
  axios
    .get("http://dev.*****************get-template", {
      headers: {
        Authorization: `Bearer + ${token}`,
      },
    })
    .then(res =&gt; {
        console.log("Success")
    })
    .catch(error =&gt; {
      console.log(error)
    })
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/11InT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/11InT.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/FNytZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FNytZ.png" alt="enter image description here"></a></p>
  
  <p>that's how I'm saving token. May be I'm not correctly saving it in localStorage? But when console.log it displays fine</p>
  
  <pre><code> event.preventDefault()
      const formdata = new FormData()
      formdata.append("username", this.state.userLogin.email)
      formdata.append("password", this.state.userLogin.password)
      axios
        .post("http://dev.****************/get-token", formdata)
        .then(res =&gt; {
          if (res.data) {
            console.log(res.data)
  
            localStorage.setItem("token", res.data.access_token)
            localStorage.setItem("updToken", res.data.update_token)
            this.props.history.push("/settings")
          }
        })
        .catch(error =&gt; {
          console.log(error)
        })
  </code></pre>