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

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,

we are getting the following exception on the page:

Can you please help us to fix this?