How to configure CORS Headers in Service Registry ?
Issue
-
How to configure CORS Headers in Service Registry to avoid the following exception:
apicurioregistry-kafkasql.dev-apicurio.router-default.apps.test.cloud/:1 Access to XMLHttpRequest at 'https://login.test.com/auth/realms/internal/protocol/openid-connect/token' from origin 'http://apicurioregistry-kafkasql.dev-apicurio.router- default.apps.test.cloud' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. keycloak.js:795 POST https://login.test.com/auth/realms/internal/protocol/open
Environment
- Red Hat Service Registry: 2.x
- Red Hat OpenShift Container (Openshift) 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.