Korneel
Korneel

Reputation: 1507

Chrome "protocols must match" error when running Google Cloud Endpoints web client on localhost

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

Answers (1)

Korneel
Korneel

Reputation: 1507

It was the Chrome extension DoNotTrackMe that was causing the error. Disabling the extension solves the problem.

Upvotes: 1

Related Questions