Skip to content
Snippets Groups Projects
Commit 3c4240ad authored by eggle's avatar eggle
Browse files

+cors

parent 6339deef
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,26 @@
<filter>
<filter-name>crossDomainFilter</filter-name>
<filter-class>com.example.oasisdemo.filter.CrossDomainFilter</filter-class>
<init-param>
<param-name>cors.allowOrigin</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>cors.supportedMethods</param-name>
<param-value>GET, POST, HEAD, PUT, DELETE</param-value>
</init-param>
<init-param>
<param-name>cors.supportedHeaders</param-name>
<param-value>Accept, Origin, X-Requested-With, Content-Type, Last-Modified</param-value>
</init-param>
<init-param>
<param-name>cors.exposedHeaders</param-name>
<param-value>Set-Cookie</param-value>
</init-param>
<init-param>
<param-name>cors.supportsCredentials</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>crossDomainFilter</filter-name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment