Skip to content
Advertisement

Tag: https

Json path starting with 0

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,

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

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

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

Advertisement