Commit 3f75e81bebdaa79c85e16f066e9f6d1b0e229cba
1 parent
aae800439d
Exists in
master
and in
1 other branch
增加配置
Showing 2 changed files with 2 additions and 15 deletions
platform-operate-api/src/main/webapp/WEB-INF/web.xml
View file @
3f75e81
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | version="2.5" |
| 14 | 14 | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
| 15 | 15 | |
| 16 | - | |
| 16 | +<!-- | |
| 17 | 17 | <filter> |
| 18 | 18 | <filter-name>CorsFilter</filter-name> |
| 19 | 19 | <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> |
| ... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | <url-pattern>/*</url-pattern> |
| 48 | 48 | </filter-mapping> |
| 49 | 49 | |
| 50 | - | |
| 50 | + --> | |
| 51 | 51 | <servlet-mapping> |
| 52 | 52 | <servlet-name>default</servlet-name> |
| 53 | 53 | <url-pattern>*.xml</url-pattern> |
platform-operate-api/src/main/webapp/clientaccesspolicy.xml
View file @
3f75e81
| 1 | -<?xml version="1.0" encoding="utf-8" ?> | |
| 2 | - <access-policy> | |
| 3 | - <cross-domain-access> | |
| 4 | - <policy> | |
| 5 | - <allow-from http-request-headers="*"> | |
| 6 | - <domain uri="*"/> | |
| 7 | - </allow-from> | |
| 8 | - <grant-to> | |
| 9 | - <resource path="/" include-subpaths="true"/> | |
| 10 | - </grant-to> | |
| 11 | - </policy> | |
| 12 | - </cross-domain-access> | |
| 13 | - </access-policy> |