# SelfHosted Okta Widget + Spring boot + HTML + javascript not working

**URL:** <https://devforum.okta.com/t/selfhosted-okta-widget-spring-boot-html-javascript-not-working/21656>\
**Category:** OAuth/OIDC\
**Tags:** api, spring, java\
**Created:** [August 23, 2022, 10:20am UTC](https://devforum.okta.com/t/selfhosted-okta-widget-spring-boot-html-javascript-not-working/21656 "2022-08-23T10:20:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apriya](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@apriya](https://devforum.okta.com/u/apriya)\
**Post date:** [August 23, 2022, 10:20am UTC](https://devforum.okta.com/t/selfhosted-okta-widget-spring-boot-html-javascript-not-working/21656/1 "2022-08-23T10:20:56Z")

</div>

We have set up the Self hosted Login page with the Okta sign in widget in Spring boot with OAuth/OIDC and HTML and Javascript.

When trying to login to the below page,

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/1/1d33a6de26dfe136d12f306744f993358bdd51fe.png)

we are getting the following exception on the page:

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/8/8e458cfaf928d716a917166032814f1fcd7516ac.png)

Can you please help us to fix this?

---

<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 12, 2024, 9:54pm UTC](https://devforum.okta.com/t/selfhosted-okta-widget-spring-boot-html-javascript-not-working/21656/2 "2024-02-12T21:54:25Z")

</div>

Closed on February 12, 2024, 9:54pm UTC


