title: Request header field Access-Control-Allow-Headers is not allowed by Access-Control-Allow-Headers
body: <p>I'm trying to send files to my server with a post request, but when it sends it causes the error:</p>
  
  <blockquote>
    <p>Request header field Content-Type is not allowed by Access-Control-Allow-Headers.</p>
  </blockquote>
  
  <p>So I googled the error and added the headers:</p>
  
  <pre><code>$http.post($rootScope.URL, {params: arguments}, {headers: {
      "Access-Control-Allow-Origin" : "*",
      "Access-Control-Allow-Methods" : "GET,POST,PUT,DELETE,OPTIONS",
      "Access-Control-Allow-Headers": "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"
  }
  </code></pre>
  
  <p>Then I get the error: </p>
  
  <blockquote>
    <p>Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers</p>
  </blockquote>
  
  <p>So I googled that and the only similar question I could find was provided a half answer then closed as off topic. What headers am I supposed to add/remove?</p>