@Thomas Broyer
On Tuesday, November 8, 2016 at 6:09:19 PM UTC-5, Thomas Broyer wrote:
-- Thanks and you are correct, after configuring the web services with CORS it works like a charm. I added this filter to web.xml, carefully limiting CORS to GET methods only.
<!-- Cross Origin Resource Sharing (CORS) -->
<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</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
------
On Tuesday, November 8, 2016 at 6:09:19 PM UTC-5, Thomas Broyer wrote:
A status code of 0 is generally indicative of a cross origin request without CORS (or an aborted request or network error)
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment