1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 ~ Copyright (c) 2016 Cisco and/or its affiliates.
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at:
9 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
18 <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
23 <filter-name>cross-origin-restconf</filter-name>
24 <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
26 <param-name>allowedOrigins</param-name>
27 <param-value>*</param-value>
30 <param-name>allowedMethods</param-name>
31 <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
34 <param-name>allowedHeaders</param-name>
35 <param-value>origin, content-type, accept, authorization</param-value>
38 <param-name>exposedHeaders</param-name>
39 <param-value>location</param-value>
43 <filter-name>cross-origin-restconf</filter-name>
44 <url-pattern>/*</url-pattern>
48 <web-resource-collection>
49 <web-resource-name>NB api</web-resource-name>
50 <url-pattern>/*</url-pattern>
51 <http-method>POST</http-method>
52 <http-method>GET</http-method>
53 <http-method>PUT</http-method>
54 <http-method>PATCH</http-method>
55 <http-method>DELETE</http-method>
56 <http-method>HEAD</http-method>
57 </web-resource-collection>
58 </security-constraint>