I’m trying to get the data from a https.get request to an API and the json path has a 0 at the beginning. What does it mean and how do I access the data? The path is 0.length and the json chart viewer throws an error. The data looks like this in json viewer: Answer 0 is index of array,
Tag: https
Is it fine to use the same mkcert certificate for both your frontend and backend?
I’m developing a webapp that uses vite on the frontend for my local testing environment and also a separate API backend. I used mkcert to generate a local dev certificate and am using that one for the backend. My question is, for my frontend dev environment I also can use a certificate, as shown here in the vite config: My
Trying to run express node js as https server but it won’t run
I’m trying to get HTTPS working on express.js for node, and it won’t run. This is my server.js code. When I run it reports no errors but it just get stuck to nothing (I waited 30 minutes to see if it does something and nothing happened). Answer httpServer.listen(8080, ()=>{console.log(‘Server is running’)}); If the server successfully started, it should output “Server
How do I add parameters to https get request?
I am working on a little project to learn how to work with APIs by making GET requests to the Twitter API v2 via a node server. For the get requests I am using Node’s built in https package. I made a basic GET request that returns a list of the last 10 tweets from a user. I think in
Javascript / Three.js is not working in https
I recently switched my http site to https. Since I made this change, one of my projects no longer works. In this random generator, the background using the Three.js library does not appear when the url is in https But in http , it works beautiful and well. Does anyone know any solution to this problem? Thank you for your
Socket hang up when using axios.get, but not when using https.get
To the best of my knowledge, I am doing the same thing using 2 different approaches: When I run this code, i get 2 different outcomes: What is going on here? I have a feeling it has to do with asynchronicity, but not quite sure how… Can somebody give me a hint as to how/why these 2 behaviors are different?
Why JavaScript is not working in HTTPS on my site
I have just added HTTPS to my site and apparently the only script I have on my site has stopped working. I don’t think it is a problem of the script, but here it is: What is the solution to this problem? Answer Add your jQuery file like this, without mentioning the protocol explicitly: Removing the http: part from src