[jetty-user] Re: Jetty - Access-Control-Allow-Origin
AlanS <[email protected]> Mon, 19 Mar 2012 15:46:18 -0700 (PDT)
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <[email protected]> |
I think that means to be able to do this in the code above:
<web-app>
<filter>
<filter-name>cross-origin</filter-name>
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
<init-param>
<param-name>allowedOrigins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>allowedMethods</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>allowedHeaders</param-name>
<param-value>*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>cross-origin</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
what is the equivalent of this in code that starts this automatically?
--
View this message in context: http://jetty.4.n6.nabble.com/Jetty-Access-Control-Allow-Origin-tp4634198p4635075.html
Sent from the Jetty Support mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email