dailyjs-backbone-tutorial icon indicating copy to clipboard operation
dailyjs-backbone-tutorial copied to clipboard

Error: origin_mismatch - serving localhost via https / cross-domain security

Open stefek99 opened this issue 12 years ago • 1 comments

Hi,

Great tutorial and DailyJS content in general - well done.

Have question regarding - http://dailyjs.com/2012/12/13/backbone-tutorial-3/ During the process there were many detailed steps so I ended up:

git clone [email protected]:alexyoung/dailyjs-backbone-tutorial.git
cd dailyjs-backbone-tutorial
git reset --hard c1d5a2e7cc

And then edit config.apiKey and config.clientId in app/js/config.js


I launch app node server.js and then try to Sign In with Google screenshot_19_05_2013_09_33

Google API Console

https://code.google.com/apis/console/ screenshot_19_05_2013_09_32

Tried setting Redirect URIs to be just http://localhost/ (rather than http://localhost/oauth2callback)

Tried launching Chrome with --disable-web-security but it crashes immediately afterwards: http://stackoverflow.com/a/14562602/775359 (as someone suggested here)


Before I spend all the sunny Sunday trying to debug it, is there anything obvious I am missing here?

Potentially - http://nodejs.org/api/https.html - shall serve app via https? Not particularly keen, as generating keys and setting up https is not the goal of learning backbone (see: yak shaving)

Thank you in advance.

stefek99 avatar May 19 '13 08:05 stefek99

I followed the steps from this tutorial and had the same issue as you, I solved it by adding port 8080 to origins:

JavaScript origins: http://localhost:8080

djhojd avatar Aug 12 '13 14:08 djhojd