How to define CORS in Websphere Application Server Liberty Profile V8.5

前端 未结 4 1195
遥遥无期
遥遥无期 2021-02-02 00:18

Is it possible to apply cross-origin resource sharing (CORS) in a Websphere Application Server Liberty Profile V8.5 ?

I searched the redbook but couldn\'t find IBM menti

4条回答
  •  别那么骄傲
    2021-02-02 00:30

    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:

        
    

    Good luck, and I hope it helps.

提交回复
热议问题