Enable CORS for Kie Server in RHPAM 7
Issue
- When I call kie-server REST API from my Angular app, I get the following error. How can I enable Cross-Origin Resource Sharing (CORS) for kie-server?
Access to XMLHttpRequest at 'http://example1.com:8080/kie-server/services/rest/server/containers' from origin 'http://example2.com:8080' 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.
Environment
- Red Hat Process Automation Manager (RHPAM)
- 7.1.1
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.