RESTful web service will include CORS access control headers in its response, you’ll need to write a filter that adds those headers to the response. This SimpleCORSFilterclass provides a simple implementation of such a filter:
SimpleCORSFilter responds to all requests with certain Access-Control-*headers. In this case, the headers are set to allow POST, GET, OPTIONS, or DELETE requests from clients originated from any host. The results of a preflight request may be cached for up to 3,600 seconds (1 hour). And the request may include an x-requested-with header.
Comments
Post a Comment