You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't do that because the api is released for http
error: was loaded over HTTPS, but requested an insecure resource 'http://3.140.xxx.xxx:xxxx/api/3/cpu'. This request has been blocked; the content must be served over HTTPS.
The api should have access to SSL
`
var myHeaders = new Headers();
myHeaders.append("Authorization", "Basic XXXX");
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I can't do that because the api is released for http
error:
was loaded over HTTPS, but requested an insecure resource 'http://3.140.xxx.xxx:xxxx/api/3/cpu'. This request has been blocked; the content must be served over HTTPS.
The api should have access to SSL
`
var myHeaders = new Headers();
myHeaders.append("Authorization", "Basic XXXX");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("http://3.140.xxx.xxx:xxxx/api/3/cpu", requestOptions)
.then(response => response.text())
.then(result => {
console.log(result)
})
.catch(error => console.log('error', error));
`
Beta Was this translation helpful? Give feedback.
All reactions