Login not working

Hi ,
We recently created a project in Blazor/Client-side(WebAssembly)/.NET 5 with authentication, on localhost it works fine, mas em Server com PWA, e apenas PWA selecionado, ele fica voltando sempre para o login sem erros na interface. Só erros na consola(we have https configured on the server). If we remove the PWA it works

It also says it's a CORS error, but it isn't.

Console Erros:

1- Login:26 Uncaught TypeError: Cannot read property 'register' of undefined
at Login:26
(anonymous) @ Login:26

the Line is " "

2 - Login:1 Access to XMLHttpRequest at 'https://xpto/.well-known/openid-configuration' from origin 'http://xpto' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

3 - AuthenticationService.js:1 GET https://xpto/.well-known/openid-configuration net::ERR_FAILED

Hi @Cybermap,

PWA aggressively will cache JavaScript, CSS, etc. Try to access your application in browser incognito mode or clear your browser cache.

I have done it alredy, several times. The login never works with PWA only with PWA inactive.

Hey @Cybermap ,

What is your browser? I see a lot posts about this error and old browsers not supporting service workers:
https://www.google.com/search?q=Uncaught+TypeError%3A+Cannot+read+property+'register'+of+undefined&sxsrf=ALeKk03pvjJ-MttSq1edpCIFCVZoQ6-f4g%3A1625067164782&ei=nI7cYLSpL-n-7_UP-rK4qAI&oq=Uncaught+TypeError%3A+Cannot+read+property+'register'+of+undefined&gs_lcp=Cgdnd3Mtd2l6EAMyBAgjECcyBggAEAcQHjIGCAAQBxAeMgIIADICCAAyBAgAEB4yBAgAEB46BwgjELADECc6BwgAEEcQsANKBAhBGABQzQxYzQxgnw5oAnACeACAAViIAagBkgEBMpgBAKABAaoBB2d3cy13aXrIAQnAAQE&sclient=gws-wiz&ved=0ahUKEwi059741r_xAhVp_7sIHXoZDiUQ4dUDCA8&uact=5

Hey ,

We tried several browsers:

1- Firefox Browser Developer 90.0b12 (64-bit)
2- Chrome version 91.0.4472.124 (Versão oficial) 64 bits
3- Microsoft Edge Version 91.0.864.59 (Official build) (64-bit)
4- Brave Version 1.26.67 Chromium: 91.0.4472.114 (Official Build) (64-bit)

All have the same behavior.

I'm afraid that I don't have any other ideas. Here is an PWA WASM application deployed to ZIP, started and exposed with ngrok: