How to enable Cross-Origin Resource Sharing (CORS) for RESTEasy service bindings in FSW 6
Issue
- We are developing an application based on FSW. The problem we have is that we cannot consume REST Services we are exposing from different origins.
- Our application consists of two main components: an AngularJS application and set of SwitchYard REST services. The front-end application (AngularJS) consumes the REST services we are exposing over SwitchYard. We have one service with a RESTEasy binding that exposes all the rest services.
- We tried with this community forum thread - "How to allow CORS" - but it didn't work. We tried to implement a web filter and a server interceptor, but neither worked.
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
