How to enable Cross-Origin Resource Sharing (CORS) for RESTful web services on EAP 6

Solution Unverified - Updated -

Issue

  • How do you enable Cross-Origin Resource Sharing (CORS) on JBoss EAP 6 ?
  • We have EAR files deployed that we utilise through REST queries.
  • We would like to create a management web site that utilises those REST queries - but the browser restriction for CORS is stopping us.
  • Hence we would like to see if we could enable this for the JBoss server.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content