I have a problem downloading a file from a rest api using angular 6
Back-end method
@RequestMapping(value = \"/print/{id}\") public ResponseEnt
Try adding content-type to your request headers. You can try this as an exemple:
let headers = new Headers({'Content-Type': 'application/pdf', 'Accept': 'application/pdf'});