title: vue-resource: Access-Control-Allow-Origin error
body: <p>vue-resource:</p>
  
  <pre><code>Vue.http.post(API_URL + '/jwt/access_token', credentials, {
              headers: {
                  'Access-Control-Allow-Origin': true
              }
          }).then(response =&gt; {
              console.log(response.data)
          }, err =&gt; reject(err))
  </code></pre>
  
  <p>My api is properly configured with the CORS laravel..</p>
  
  <p>I get that error:</p>
  
  <pre><code>XMLHttpRequest cannot load http://finance.app/jwt/access_token. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
  </code></pre>
  
  <p>Request headers:</p>
  
  <pre><code>OPTIONS /jwt/access_token HTTP/1.1
  Host: finance.app
  Connection: keep-alive
  Access-Control-Request-Method: POST
  Origin: http://localhost:8080
  User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36
  Access-Control-Request-Headers: access-control-allow-origin, content-type
  Accept: */*
  Referer: http://localhost:8080/
  Accept-Encoding: gzip, deflate, sdch
  Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4
  </code></pre>
  
  <p>where I'm going wrong?  :(</p>
  
  <p>Thanks!</p>