'Javascript download PDF from request

I'm trying to download a PDF from a service through javascript but the images are not being loaded. I noticed that if I call the service directly, using Postman for example, the content length changes, when using javascript it's bigger. Is there any header that I need to include on the request or response?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source