Skip to content

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

Description

@stefek99

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions