# Cannot post Cannot POST /login/callback

**URL:** <https://devforum.okta.com/t/cannot-post-cannot-post-login-callback/25130>\
**Category:** OAuth/OIDC\
**Created:** [August 24, 2023, 2:43pm UTC](https://devforum.okta.com/t/cannot-post-cannot-post-login-callback/25130 "2023-08-24T14:43:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rushikesh](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Rushikesh](https://devforum.okta.com/u/Rushikesh)\
**Post date:** [August 24, 2023, 2:43pm UTC](https://devforum.okta.com/t/cannot-post-cannot-post-login-callback/25130/1 "2023-08-24T14:43:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sherry](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@Sherry](https://devforum.okta.com/u/Sherry)\
**Post date:** [August 24, 2023, 2:56pm UTC](https://devforum.okta.com/t/cannot-post-cannot-post-login-callback/25130/2 "2023-08-24T14:56:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Rushikesh](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Rushikesh](https://devforum.okta.com/u/Rushikesh)\
**Post date:** [August 24, 2023, 3:00pm UTC](https://devforum.okta.com/t/cannot-post-cannot-post-login-callback/25130/3 "2023-08-24T15:00:04Z")

</div>

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)”

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 15, 2024, 11:48pm UTC](https://devforum.okta.com/t/cannot-post-cannot-post-login-callback/25130/4 "2024-02-15T23:48:42Z")

</div>

Closed on February 15, 2024, 11:48pm UTC


