For the new CORS functionality, I've created a Maven/Jetty/servlet
based test webapp. That seemed to be the best approach, since you just
need Java and Maven and can run the webapp without any deployment or
configuration. The source code can be found here:
https://github.com/raju-bitter/openlaszlo-cors-test

Do you want to create a separate test application? The core of my test
webapp is the CrossOriginFilter servlet filter which ships with Jetty:
https://github.com/raju-bitter/openlaszlo-cors-test/blob/master/src/main/java/org/eclipse/jetty/servlets/CrossOriginFilter.java

The LZX test file I've created for CORS can be found here:
http://localhost:8080/trunk/test/data/dhtml-cross-origin-dataset.lzx

I've created different filter mappings for the test URLs I'm using out
ouf the LZX test file:
https://github.com/raju-bitter/openlaszlo-cors-test/blob/master/src/main/webapp/WEB-INF/web.xml
        <filter-name>CORSFilterWithCredentials</filter-name>
        
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
        <init-param>
            <param-name>allowedMethods</param-name>
            <param-value>GET,POST</param-value>
        </init-param>
        <init-param>
            <param-name>allowedOrigins</param-name>
            <param-value>http://localhost:8080</param-value>
        </init-param>
        <init-param>
            <param-name>allowedHeaders</param-name>
            <param-value>X-Requested-With</param-value>
        </init-param>
        <init-param>
            <param-name>allowCredentials</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>

Is it sufficient for you to have CORS test webapp at Github, or you do
want to import it into svn.openlaszlo.org?

Reply via email to