Sign in widget gives 404

I am getting a 404 error when i try to login with the sign in widget hosted on my application’s web page (Javascript/Html). The widget renders fine but when I click on login, I get a 404. I have setup a corresponding SPA in my OKTA org and using the right details.

Config of my widget

signInWidgetConfig = { // Caution editing this section as you may break the demo.
baseUrl: ‘’,
clientId: ‘0oaftwrjphcP4TLjP0h7’,
// redirectUri: ‘http://localhost:8001/training/login/’,
authParams: {
issuer: ‘’,
responseType: [‘id_token’, ‘token’],
scopes: [‘openid’, ‘email’, ‘profile’],

Config of my app

The 404 error I get:

Use default for the issuer

Remove -admin from the baseUrl

Make sure you are using the latest version of the widget :slight_smile:

I think that should resolve the issue.