Hello,
I have a problem with my HTTP requests. Is it possible please to help me understand what is happening?
When I am sending a GET request it is sent as OPTIONS:
let headers = new HttpHeaders();
headers = headers.set('Content-Type', 'application/json; charset=utf-8')
.set('Authorization','bearer ' + this.auth.getUserToken());
this.http.get(SERVER.URL_PROD + API.VERSION + API.GET_USERS, {headers: headers}).subscribe((res: any) => {
console.log(res);
});
In my chrome dev tool debug I see the following:
Request Method: OPTIONS
Status Code: 405 Method Not Allowed