X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fresources%2FWEB-INF%2Fweb.xml;h=120a826b32a863b850ee634b563b6bcffe0bc017;hb=348cb4e7ba4e18e4aaf726d6492642aa3cc7c86b;hp=eb2b516d969cdcd3ccc95e0471c3ecea12930ff8;hpb=caee336f062eba4909ba53cbaccdde0714236134;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml b/opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml index eb2b516d96..120a826b32 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml +++ b/opendaylight/md-sal/sal-rest-connector/src/main/resources/WEB-INF/web.xml @@ -10,6 +10,11 @@ javax.ws.rs.Application org.opendaylight.controller.sal.rest.impl.RestconfApplication + + + com.sun.jersey.spi.container.ContainerRequestFilters + org.opendaylight.aaa.sts.TokenAuthFilter + 1 @@ -19,38 +24,26 @@ - CorsFilter - org.apache.catalina.filters.CorsFilter + cross-origin-restconf + org.eclipse.jetty.servlets.CrossOriginFilter - cors.allowed.origins + allowedOrigins * - cors.allowed.methods - GET,POST,HEAD,OPTIONS,PUT + allowedMethods + GET,POST,OPTIONS,DELETE,PUT,HEAD - cors.allowed.headers - Content-Type,X-Requested-With,accept,authorization, - origin,Origin,Access-Control-Request-Method,Access-Control-Request-Headers - - - cors.exposed.headers - Access-Control-Allow-Origin,Access-Control-Allow-Credentials - - - cors.support.credentials - true - - - cors.preflight.maxage - 10 + allowedHeaders + origin, content-type, accept, authorization - CorsFilter + cross-origin-restconf /* + NB api