Okta React + Custom Login can not log in

When I use a custom login, I can log in normally when I use localhost:3000 to log in. But when I use ip to log in, it will stay in the login interface and cannot jump.

The following error is captured in the browser console:

AuthSdkError: PKCE requires a modern browser with encryption support running in a secure context. The current page is not being served with HTTPS protocol. PKCE requires secure HTTPS protocol.

But I am currently deploying to the development environment and cannot use https for the time being, how should I solve this problem.

If you’re not using localhost, you MUST use SSL/HTTPS. Our libraries only allow an exception for testing on localhost.

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