Permitting web browsers to access deployed HTTP services by enabling Cross-Origin Resource Sharing
You can configure IBM® Integration Bus to permit cross-origin requests from a web browser by enabling Cross-Origin Resource Sharing (CORS).
Before you begin
About this task
Procedure
If you want to permit a web page that is running in a web browser to make HTTP requests to HTTP services that are deployed to IBM Integration Bus, where those HTTP services are being hosted on an HTTP listener for an integration server or an HTTP listener for the integration node, complete the following steps:
Results
What to do next
Complete the following checks:
- Test the configuration by making HTTP requests from a web page that is running in a web browser to the deployed HTTP services that are being hosted on the HTTP listener that you configured.
- Check that the HTTPInput node in the message flow is called when the request is made, and that the message flow processes the request as expected.
- Check that the response that is sent through the HTTPReply node in the message flow is returned to the web page that made the request, and that the response is not dropped by the web browser.
- Check that this processing works for all the HTTP methods that the web page makes requests for.