Angular HttpClient issue when calling Bing Maps Locations REST methods
Clash Royale CLAN TAG #URR8PPP Angular HttpClient issue when calling Bing Maps Locations REST methods I have an existing call to Bing Maps made with Angular 4 Http service, that is working correctly: this.http.get(".../Locations?...&key=mykey") I'm trying to change the call to use the HttpClient service introduced in Angular 4.3, but when trying the same code: this.httpClient.get(".../Locations?...&key=mykey") then the request is sent with the preflight OPTIONS request, and bing maps obviously refuses it. I've tried to observe the request instead of the body, requesting a text response, and force the Accept header to text, but had no success. Headers of the Http request (working): Accept: application/json, text/plain, */* Origin: http://localhost:4200 Referer: http://localhost:4200/ User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Headers of the HttpClient request (not worki...