IEEE802.1q Packet returns incorrect header size
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / configuration / cors-config.xml
1 <!--
2   ~ Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3   ~
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
7   -->
8
9 <Host>
10     <!-- Filters are allowed here, only serving as a template -->
11     <filter-template>
12         <filter-name>CorsFilter</filter-name>
13         <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
14         <init-param>
15             <param-name>cors.allowed.origins</param-name>
16             <param-value>*</param-value>
17         </init-param>
18         <init-param>
19             <param-name>cors.allowed.methods</param-name>
20             <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value>
21         </init-param>
22         <init-param>
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
26             </param-value>
27         </init-param>
28         <init-param>
29             <param-name>cors.exposed.headers</param-name>
30             <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
31         </init-param>
32         <init-param>
33             <param-name>cors.support.credentials</param-name>
34             <param-value>true</param-value>
35         </init-param>
36         <init-param>
37             <param-name>cors.preflight.maxage</param-name>
38             <param-value>10</param-value>
39         </init-param>
40     </filter-template>
41
42     <Context path="/restconf">
43         <filter>
44             <filter-name>CorsFilter</filter-name>
45             <!-- init params can be added/overriden if template is used -->
46         </filter>
47         <!-- references to templates without <filter> declaration are not allowed -->
48         <filter-mapping>
49             <filter-name>CorsFilter</filter-name>
50             <url-pattern>/*</url-pattern>
51         </filter-mapping>
52     </Context>
53
54 </Host>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.