64 lines
2.3 KiB
XML
64 lines
2.3 KiB
XML
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||
|
|
<!--
|
||
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||
|
|
contributor license agreements. See the NOTICE file distributed with
|
||
|
|
this work for additional information regarding copyright ownership.
|
||
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
||
|
|
(the "License"); you may not use this file except in compliance with
|
||
|
|
the License. You may obtain a copy of the License at
|
||
|
|
|
||
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
|
||
|
|
Unless required by applicable law or agreed to in writing, software
|
||
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
|
See the License for the specific language governing permissions and
|
||
|
|
limitations under the License.
|
||
|
|
-->
|
||
|
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
|
||
|
|
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||
|
|
version="3.1"
|
||
|
|
metadata-complete="true">
|
||
|
|
|
||
|
|
<display-name>Welcome to Tomcat</display-name>
|
||
|
|
<description>
|
||
|
|
Welcome to Tomcat
|
||
|
|
</description>
|
||
|
|
|
||
|
|
<filter>
|
||
|
|
<filter-name>CorsFilter</filter-name>
|
||
|
|
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
|
||
|
|
<init-param>
|
||
|
|
<param-name>cors.allowed.origins</param-name>
|
||
|
|
<param-value>*</param-value>
|
||
|
|
</init-param>
|
||
|
|
<init-param>
|
||
|
|
<param-name>cors.allowed.methods</param-name>
|
||
|
|
<param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>
|
||
|
|
</init-param>
|
||
|
|
<init-param>
|
||
|
|
<param-name>cors.allowed.headers</param-name>
|
||
|
|
<param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
|
||
|
|
</init-param>
|
||
|
|
<init-param>
|
||
|
|
<param-name>cors.exposed.headers</param-name>
|
||
|
|
<param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
|
||
|
|
</init-param>
|
||
|
|
<init-param>
|
||
|
|
<param-name>cors.support.credentials</param-name>
|
||
|
|
<param-value>true</param-value>
|
||
|
|
</init-param>
|
||
|
|
<init-param>
|
||
|
|
<param-name>cors.preflight.maxage</param-name>
|
||
|
|
<param-value>10</param-value>
|
||
|
|
</init-param>
|
||
|
|
</filter>
|
||
|
|
<filter-mapping>
|
||
|
|
<filter-name>CorsFilter</filter-name>
|
||
|
|
<url-pattern>/*</url-pattern>
|
||
|
|
</filter-mapping>
|
||
|
|
|
||
|
|
</web-app>
|