CORS Problem with PHP Applicatin

Hey guys,

i have an keycloak and an PHP Application in different docker containers. In Keycloak i create an client with this URLs:

When i want to login in my PHP Application, it works correctly. When i want to logout, i got this error:

Access to XMLHttpRequest at 'https://keycloak.local.unitfactory.services/auth/realms/UnitFactory/protocol/openid-connect/logout?client_id=Gastrohirsch%20Community&redirect_uri=https%3A%2F%2Fcommunity.local.gastrohirsch.services' (redirected from 'https://community.local.gastrohirsch.services/logout') from origin 'https://community.local.gastrohirsch.services' 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.

Somebody an idea?

Cheers
Ralf

Hello @kerstel did you find the solution?
I am stuck in the same problem