Enabling Cross-Origin Resource Sharing (CORS) in a RESTful Java microservice
Learn how to enable Cross-Origin Resource Sharing (CORS) in Open Liberty without Java code. Add server configurations and run tests to validate CORS settings. CORS allows requesting restricted resources from a different domain. Master this technique for consuming APIs from other origins.
At a Glance
Learn how to enable Cross-Origin Resource Sharing (CORS) in Open Liberty without writing Java code.
You will learn how to add two server configurations to enable CORS. Next, you will write and run tests to validate that the CORS configurations work. These tests send two different CORS requests to a REST service that has two different endpoints.
Cross-Origin Resource Sharing (CORS) is a W3C specification and mechanism that you can use to request restricted resources from a domain outside the current domain. In other words, CORS is a technique for consuming an API served from an origin different than yours.
User Reviews
Be the first to review “Enabling Cross-Origin Resource Sharing (CORS) in a RESTful Java microservice”
You must be logged in to post a review.


There are no reviews yet.