2 ~ Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 ~ This program and the accompanying materials are made available under the
5 ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 ~ and is available at http://www.eclipse.org/legal/epl-v10.html
10 <!-- Filters are allowed here, only serving as a template -->
12 <filter-name>CorsFilter</filter-name>
13 <filter-class>org.opendaylight.controller.filtervalve.cors.jaxb.MockedFilter</filter-class>
15 <param-name>cors.allowed.origins</param-name>
16 <param-value>*</param-value>
19 <param-name>cors.allowed.methods</param-name>
20 <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value>
23 <param-name>cors.allowed.headers</param-name>
24 <param-value>Content-Type,X-Requested-With,accept,authorization,
25 origin,Origin,Access-Control-Request-Method,Access-Control-Request-Headers
29 <param-name>cors.exposed.headers</param-name>
30 <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
33 <param-name>cors.support.credentials</param-name>
34 <param-value>true</param-value>
37 <param-name>cors.preflight.maxage</param-name>
38 <param-value>10</param-value>
42 <Context path="/restconf">
43 <!-- Filters are also allowed here. -->
45 <filter-name>CorsFilter</filter-name>
46 <!-- init params can be added/overriden if template is used -->
48 <!-- only local references are allowed -->
50 <filter-name>CorsFilter</filter-name>
51 <url-pattern>/*</url-pattern>
55 <Context path="/controller/nb/v2/connectionmanager">
57 <filter-name>CorsFilter</filter-name>
58 <url-pattern>/*</url-pattern>