# Okta login widget is stuck in login

**URL:** <https://devforum.okta.com/t/okta-login-widget-is-stuck-in-login/19489>\
**Category:** Questions\
**Created:** [February 21, 2022, 5:22am UTC](https://devforum.okta.com/t/okta-login-widget-is-stuck-in-login/19489 "2022-02-21T05:22:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lahiruchandima](https://avatars.discourse-cdn.com/v4/letter/l/e0b2c6/32.png) [@lahiruchandima](https://devforum.okta.com/u/lahiruchandima)\
**Post date:** [February 21, 2022, 5:22am UTC](https://devforum.okta.com/t/okta-login-widget-is-stuck-in-login/19489/1 "2022-02-21T05:22:50Z")

</div>

I am using @okta/okta-signin-widget (version 6.0.1) in my angular project. It works well when I start the angular project in my PC.

But when I host it in a different server, okta signin widget hangs in the login page, once the username and the password is entered and login form is submitted.

The last network call I can see in chrome dev console is the following, and it has succeeded.

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/c/c0390282d4867a236407f7f2c3a46158d3e4244f.jpeg)

No error is logged into the dev console.

If I create an ssh tunnel from my PC to the address of the hosted url, and access it through localhost, it works.

Note that the hosted address is http, not https. I am unable to host it with https for now.

What could be the reason for this?

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [February 23, 2022, 9:22pm UTC](https://devforum.okta.com/t/okta-login-widget-is-stuck-in-login/19489/2 "2022-02-23T21:22:49Z")

</div>

Hello,

PKCE flow requires https. Okta SDKs allow http for localhost, but other host names will need to bind to an SSL port.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 8, 2024, 9:36pm UTC](https://devforum.okta.com/t/okta-login-widget-is-stuck-in-login/19489/3 "2024-02-08T21:36:01Z")

</div>

Closed on February 8, 2024, 9:36pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
