I'm having problems debugging Angular app in Chrome ( 62.0.3202.89) with JetBrains IDE Support plugin (2.0.9) and Intellij Idea Ultimate (2017.2.6).
The app calls some 3rd party URL to get access token on startup, but whenever I connect idea debugger the request fails:
Failed to load <service url>: Request header field x-ijt is not allowed by Access-Control-Allow-Headers in preflight response.
The service sends header:
Access-Control-Allow-Headers: accept, content-type, cookie, set-cookie
It seems like IDE support plugin adds "x-ijt" header to all requests which makes them fail if server responds with "Access-Control-Allow-Headers".
What is that header for and is there a way to prevent the plugin from sending it to some urls? The only workaround I've come up with is to run chrome with CORS disabled but that doesn't seem like a good solution.