This forum is now read-only. Please use our new forums at discuss.codecademy.com.

How to use APIs with JavaScript Forum

View Course

79 points
D7a5265b96f8bc1628d5bc1f17ed8792?s=140&d=retro
Submitted by
Hope Atina
over 2 years ago

Just a Heads up: The Request, Step 5 requires that you also change http in the url to https

The tutorial needs to be updated


5 votes

permalink

So for those of you who do not understand what's going on still - here is a working code:

var xhr = new XMLHttpRequest();
xhr.open("GET", "https://www.codecademy.com/", false);
// Add your code below!
xhr.send()
console.log(xhr.status);
console.log(xhr.statusText);

Thanks for the solution, guys.

1549 points
F61264cc41af10ae4effd8877f350c86?s=140&d=retro
Submitted by
dustykiid
over 2 years ago


2 votes

permalink

Yes, this needs to be updated. Luckily I realised what the issue was after seeing a blog post from Codecademy that the site now loads over a HTTPS connection.

63 points
Picture
Submitted by
AshTube
over 2 years ago