Sorry, I tried many solutions to configure correctly the keycloak version 21, but I don´t know why I still see this error, for exemple:
Access to XMLHttpRequest at 'http://localhost:8080/auth/realms/arqgrifo/.well-known/openid-configuration' from origin 'https://localhost:44337' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.