Does anyone know how to configure the Jetty-Maven plugin to use the
cross origin filter?

I added the following to the application web.xml file, but when I
execute "mvn jetty:run" I get "java.lang.ClassNotFoundException:
org.eclipse.jetty.servlets.CrossOriginFilter"

<web-app ...>
    ...
    <filter>
        <filter-name>cross-origin</filter-name>
        
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>cross-origin</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    ...
</web-app>

Thanks.

-Ari
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to