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
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 …
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