title: CORS issue with Vue js
body: <p>I used vuejs, with address <a href="http://localhost:8000" rel="nofollow noreferrer">http://localhost:8000</a>.</p>
  
  <p>When calling api, I get CORS error. Sid not succeed request headers
  request</p>
  
  <blockquote>
    <p>Domain from origin <code>http://localhost:8080</code> has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.</p>
  </blockquote>
  
  <pre class="lang-js prettyprint-override"><code>let headers = {
            'Content-Type': 'application/json',
            'Access-Control-Allow-Origin': true,
  };
  </code></pre>