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

/prog/ - Programming

Programming
You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.

Name
Email
Subject
REC

0:00

Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Expand all images

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

[–]

be209a (3) No.4564 >>4572 >>5410 [Watch Thread][Show All Posts]

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 (3) 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 (3) No.4572

>>4564 (OP)

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 (1) No.5410

>>4564 (OP)

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][Screencap][Nerve Center][Random][Update] ( Scroll to new posts) ( Auto) 3
3 replies | 0 images | 2 UIDs | Page 2
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ][ watchlist ]