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

前端 未结 4 1197
遥遥无期
遥遥无期 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:48

    You have to add following jars to your WEB-INF/lib folder:

    • cors-filter-1.8.jar
    • java-property-utils-1.9.jar

    In your web.xml you have to add following rules:

    
        CORS
        com.thetransactioncompany.cors.CORSFilter
    
    
            CORS
            /*
    
    

提交回复
热议问题