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.apache.catalina.filters.CorsFilter</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">
44 <filter-name>CorsFilter</filter-name>
45 <!-- init params can be added/overriden if template is used -->
47 <!-- references to templates without <filter> declaration are not allowed -->
49 <filter-name>CorsFilter</filter-name>
50 <url-pattern>/*</url-pattern>