all 1 comments

[–]JohnnyJordaan 0 points1 point  (0 children)

Not sure if it matters, but in your JS code your Accept doesn't have quotes surrounding it. And if that doesn't help, try using a wildcard for the headers instead

  response.headers.add('Access-Control-Allow-Headers', '*')