To extend to the CORS from ArthurDM:
The documented pages where not explaining enough for me. My setup is the following and I just want to share that with you:
- Use Liberty Profile 8.5.5.9. So the CORS addition to liberty profile is not in beta only anymore.
- Use JavaEE batch and connected the batch to put all its data in the repository (not in memory).
- I wanted to use batchManagement-1.0 feature for the rest api of batch that comes with it.
- Angular 1.
Eventually the following cors setting did the trick:
<cors domain="/ibm/api"
allowedOrigins="http://localhost:9080"
allowedMethods="GET, POST, PUT, DELETE"
allowedHeaders="Accept, Accept-Language, Content-Language, Content-Type"
exposeHeaders="Content-Type"
allowCredentials="true"
maxAge="3600" />
Good luck, and I hope it helps.