No 'Access-Control-Allow-Origin' header is present on the requested resource in Keycloak 21

I’m trying to configure React app to work with Keycloak 21 and Spring Boot gateway. When I open remotely hosted React page and page a GET request I get error into browser:

Access to XMLHttpRequest at 'https://ip/realms/admin_console_realm/protocol/openid-connect/auth?response_type=code&client_id=admin_console_client&scope=openid&state=ze9ujRxcOaI9PhgKXozIsGd0VDCnjXSF9-u_t_8bXA0%3D&redirect_uri=http://ip/login/oauth2/code/keycloak&nonce=O9rOLQ0HH-eHZFi76hW08w2r3aCmn2Enm8df68HQvBA' (redirected from 'https://ip/api/microservice/dashboard/test') from origin '' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Unfortunately all solutions on Google are for old version of Keycloak. Do you know into the latest version any working solution?

I’m having problems with Ajax requests as well, here is the discussion How to make sure Ajax re-authentication requests not to fail on CORS? · keycloak/keycloak · Discussion #20910 · GitHub

I have the same issue? Any know the solution?

Discussion in Quarkus users group

Hi everyone, I have the same issue.
Is possible to force set the “Access-Control-Allow-Origin” header on the Keycloak side?