Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Asynchronous Programming with JavaScript Asynchronous JavaScript with Callbacks Stepping Through Async Code

Andrew Lobach
Andrew Lobach
8,782 Points

Mixed Content Error thrown in modern (2025) browsers

This is less a question and more a request to Treehouse to update where they are storing the astros.json file. Most browsers will block less secure content (http requests) when you are on a secure site (https).

1 Answer

Laura Coronel
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Laura Coronel
Treehouse Teacher

Hi Andrew Lobach,

You’re absolutely right! Modern browsers will block requests to less secure (HTTP) endpoints when running from a secure (HTTPS) site.

We’re aware of this issue, and we actually mention it in the Teacher’s Notes for an earlier video called “Async Programming and Callback Functions” Under that video, we note:

When you're following along in Workspaces you may encounter an error in the console saying that the request has been blocked because it’s trying to request from an insecure endpoint. This happens because the Open Notify API uses the HTTP protocol while Workspaces run on HTTPS.

To work around this, you have a couple of options:

  1. You can download the project code and follow along in your own text editor.
  2. Or, you can add your Workspace preview URL to the exceptions list in your browser settings:

Also, it’s always a good idea to check the Teacher’s Notes for each video. We use them to post important updates and fixes like this.