Invalid localhost origin when use Linkedin javascript authentication

Just a follow-up from this question:

Linkedin authentication using auth0 Firebase and Ionic

I am trying a combination of auth0, Firebase, Ionic, Linkedin.

I got this error after the popup appears and I clicked login:

There was an error logging in Error: error: invalid origin: http://localhost:8100 {stack: (...), message: "error: invalid origin: http://localhost:8100"}

enter image description here

Although I already had localhost in the app form:

enter image description here

The strange part is when I click refresh in the browser, it said I was authenticated last time and showed my email.

Anyone has a clue how to fix this?

You just have to add that origin (localhost:8001) to the list of Allowed CORS origins in your Auth0 dashboard.

Please check this: http://d.pr/i/11zQx

Thanks!