Facing XSS issues while calling API in angular. Tried with below code but still issues not resolved. Could any one suggest me how to resolve the errors,
const headers = new HttpHeaders().set("X-XSS-Protection", "1; mode=block");
this.http.get(testURl, {headers})
.subscribe((res:any) => {
this.results = res;
});