Forum Stats

  • 3,767,981 Users
  • 2,252,736 Discussions
  • 7,874,399 Comments

Discussions

PDF from REST API

Hi,

I have a node.js api that sends a pdf file from a post http request. This api is hosted in a linux vm over an IP which it's a http url, not https. I'm trying to send the request from an apex page in javascript using fetch, but i'm getting a mixed content error because it's a http request in a https page. What I need is page that send the request, take the pdf and a button in this page to download the pdf. How can I make this? I also tried to make a http request in a procedure, but couldn't make it work, maybe because I'm new to pl/sql. Does someone can help me?

Thanks.