Error on Blazor Server app: "State is null or empty"

Good morning.

I’m developing a Blazor Server application with framework .NET 10 that requires Okta authentication.

Although I’ve followed all the instructions, after authentication I still receive the following error message: “OpenIdConnectAuthenticationHandler: message.State is null or empty.”

The application runs in https, cross-origin third-party cookies are enabled, and the application settings on the Okta website are consistent with the application code.

Has anyone encountered and solved this problem?