No 'Access-Control-Allow-Origin' header is present on the requested resource in JBoss EAP 6

Solution Unverified - Updated -

Issue

  • We have an ajax application and it have a request redirecting to another domain, the browser say:
"XMLHttpRequest cannot load: "URL". No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://appcore.cosanitas.com' is therefore not allowed access"

We need to enable cross-domain for this application or for its instance. How we can configure it in JBoss?

Environment

  • Red Hat Enterprise Application Platform (EAP)
    • 6.x

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