skip to content
Alvin Lucillo

No registered origin error

/ 1 min read

If you’re trying to get an access token via the auth0 angular SDK, if you encounter the error below, it means that the browser origin (in this case, it’s http://localhost:4200) is not allowed to make background Auth0 session/token request. To fix that, go to your auth0 tenant’s dashboard, look for the SPA, and add that URL to Allowed Web Origins

Retrieving the access token:

getAccessTokenSilently({
	authorizationParams: {
		audience: "http://localhost:8080",
		scope: "write:messages",
	},
});

Error:

invalid_request: The specified redirect_uri 'http://localhost:4200' does not have a registered origin.