How to enable CORS (Cross-origin resource sharing) ?

Solution Unverified - Updated -

Issue

  • How to enable CORS (Cross-origin resource sharing )?

  • While accessing the Red Hat Satellite APIs which are being consumed by the third party web application, following error is encountered:

    No 'Access-Control-Allow-Origin' header is present on the requested resource, Origin 'null' is therefore not allowed access.
    

Environment

  • Red Hat Satellite 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.