[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/prog/ - Programming

Programming
Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 8d9e72129983fc2⋯.png (14.65 KB,800x400,2:1,https.png)

be209a No.4564

I'm making a Node.js application for the first time without a tutorial and I am trying to use an external API someone else made to grab data.

I am getting a mix content error in the console log whenever I try to call the API because it is HTTP and not HTTPS.

I deployed on Heroku and Heroku is of course secure/https.

I have no idea how to convert the HTTP API into a secure HTTPS link.

Please let me know what tools I need and how to go about it. I have a feeling NGROK may be useful but I am pretty lost with this problem.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

be209a No.4566

I am doing the GET through an AJAX call which gets activate onClick.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

be209a No.4572

>>4564

var options = {

url : '',

method : 'GET',

strictSSL : false

};

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

4bd7c2 No.5410

>>4564

Your application should proxy the requests to avoid that.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]