Cannot post Cannot POST /login/callback

Hi, I am trying to use my App Embed Link to login, but getting above mentioned error.

I am using okta-react and /okta-signin-widget and my config file looks like below.

const config= {
oidc: {
issuer: ‘https://{domain}/oauth2/{authserver}’,
clientId: ‘{clientId}’,
redirectUri: ${window.location.origin}/login/callback,
scopes: [‘openid’, ‘profile’, ‘email’],
pkce:true
},
widget: {
issuer: ‘https://{domain}/oauth2/{authserver}’,
clientId: ‘{clientId}’,
redirectUri: ${window.location.origin}/login/callback,
scopes: [‘openid’, ‘profile’, ‘email’],
pkce:true
}
};

Any help would be appreciated, thanks in advance.

What error are you getting? It’s not showing on the forum.

Thank you for your reply.

In the console it is showing “Failed to load resource: the server responded with a status of 404 (Not Found)”