Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty Maven Plugin + Cross Origin Filter

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


Back to the top