title: Angular2 CORS access-Control-allow-headers
body: <p>Edit: Realized my mistake. "Access-Control-Allow-Request-Headers" should be "Access-Control-Allow-Headers"</p>
  
  <p>I am trying to use a get api with a header, but I keep getting Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response.</p>
  
  <p>I am using angular2 and calling a webapi using asp.net on an iis10 server</p>
  
  <p>I edited my IIS10 already, and I edited the web.config... What else can I do?
  <a href="https://i.stack.imgur.com/E1FDU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E1FDU.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/01F3A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/01F3A.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/KXqLR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KXqLR.png" alt="enter image description here"></a></p>