Reputation: 1507
I use grunt to serve my web application on localhost. When I include <script src="https://apis.google.com/js/client.js?onload=init"></script>
on my index.html page, I get the following error in the console:
Blocked a frame with origin "
https://accounts.google.com
" from accessing a frame with origin "http://127.0.0.1:9000
". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
I can't run my local server on https. How can I run my web application locally?
Upvotes: 0
Views: 1506
Reputation: 1507
It was the Chrome extension DoNotTrackMe that was causing the error. Disabling the extension solves the problem.
Upvotes: 1