Revision 47591
Added by Katerina Iatropoulou almost 7 years ago
web.xml | ||
---|---|---|
44 | 44 |
<servlet-name>dispatcher</servlet-name> |
45 | 45 |
<url-pattern>/</url-pattern> |
46 | 46 |
</servlet-mapping> |
47 |
<servlet> |
|
48 |
<servlet-name>jersey-serlvet</servlet-name> |
|
49 |
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class> |
|
50 |
<init-param> |
|
51 |
<param-name>com.sun.jersey.config.property.packages</param-name> |
|
52 |
<param-value>eu.dnetlib.data.search.web.api</param-value> |
|
53 |
</init-param> |
|
54 |
<load-on-startup>1</load-on-startup> |
|
55 |
</servlet> |
|
56 |
<servlet-mapping> |
|
57 |
<servlet-name>jersey-serlvet</servlet-name> |
|
58 |
<url-pattern>/rest/*</url-pattern> |
|
59 |
</servlet-mapping> |
|
60 |
|
|
47 | 61 |
<filter> |
62 |
<filter-name>CorsFilter</filter-name> |
|
63 |
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class> |
|
64 |
<init-param> |
|
65 |
<param-name>cors.allowed.origins</param-name> |
|
66 |
<param-value>*</param-value> |
|
67 |
</init-param> |
|
68 |
<init-param> |
|
69 |
<param-name>cors.allowed.methods</param-name> |
|
70 |
<param-value>GET,POST,HEAD,OPTIONS,DELETE</param-value> |
|
71 |
</init-param> |
|
72 |
<init-param> |
|
73 |
<param-name>cors.exposed.headers</param-name> |
|
74 |
<param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials,Access-Control-Allow-Methods</param-value> |
|
75 |
</init-param> |
|
76 |
<init-param> |
|
77 |
<param-name>cors.support.credentials</param-name> |
|
78 |
<param-value>true</param-value> |
|
79 |
</init-param> |
|
80 |
</filter> |
|
81 |
|
|
82 |
<filter-mapping> |
|
83 |
<filter-name>CorsFilter</filter-name> |
|
84 |
<url-pattern>/*</url-pattern> |
|
85 |
</filter-mapping> |
|
86 |
<filter> |
|
48 | 87 |
<filter-name>encodingFilter</filter-name> |
49 | 88 |
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
50 | 89 |
<init-param> |
Also available in: Unified diff
finalizing migration to java8 and dnet45