Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stefek99 opened this issue May 19, 2013 · 1 comment

Comments

@stefek99
Copy link

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 git@github.com: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.

@djhojd
Copy link

djhojd commented Aug 12, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants