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

Chrome error caused by not matching protocols (http vs https)

Blocked a frame with origin "https://...k.cloudfront.net" from accessing a frame with origin "http://goodweather.dev". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match. How can I avoid this or how can I change my request to a https such that Protocols match?

1 Answer

Instead of using http:// or https:// to start the source URL of the external file, just use // and the browser will resolve to match the current page protocol.