Auth0 Home Blog Docs

Attempting to renew session - 'origin_mismatch'



This has only started happening in the last few days. No code changes at all

The redirectUri's origin (http://localhost) should match the window's origin (http://localhost:4200).

    private renewToken() {
        this.auth0.checkSession({}, (err, result) => {
            if (err) {
                throw err;


Same problem. It doesn’t appear that auth0 ignores redirectUri


The lastest version of auth0-js (9.1.3 and 9.1.2) parses the port off localhost, so redirectUri:"http://localhost:4200" becomes http://localhost
I pinned my release to 9.1.0 and everything now works fine.
Pretty poor testing guys…

Fix merged here



This PR 640 add port to url in IE and Auth0 recognizes a mismatch