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=4b62bf7c2fcb2a1c219c7936063f721e1e7a2f9b;hpb=f3ba8a814797fb5d50e24e3f9144f01406121464;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 4b62bf7c2f..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,DELETE
+ 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