613dc825d7b388a7fd03f40854df9d956947642e
[controller.git] / opendaylight / commons / filter-valve / src / test / resources / sample-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     <filter-template>
11         <filter-name>CorsFilter</filter-name>
12         <filter-class>org.opendaylight.controller.filtervalve.cors.jaxb.MockedFilter</filter-class>
13         <init-param>
14             <param-name>cors.preflight.maxage</param-name>
15             <param-value>10</param-value>
16         </init-param>
17         <init-param>
18             <param-name>cors.allowed.origins</param-name>
19             <param-value>*</param-value>
20         </init-param>
21     </filter-template>
22
23     <Context path="/restconf">
24         <filter>
25             <filter-name>CorsFilter</filter-name>
26             <!-- override value -->
27             <init-param>
28                 <param-name>cors.preflight.maxage</param-name>
29                 <param-value>11</param-value>
30             </init-param>
31         </filter>
32         <filter-mapping>
33             <filter-name>CorsFilter</filter-name>
34             <url-pattern>/*</url-pattern>
35         </filter-mapping>
36     </Context>
37 </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.