Hi Raju,

Thanks so much for spending the time to create such a comprehensive test
application! If you haven't already shared this on the forums, please do so
as I'm sure there are users there that will be very interested too.

As for where it should reside, of course it would be our preference to have
it checked into openlaszlo.org - probably as a subdir of
http://svn.openlaszlo.org/openlaszlo/trunk/test/lfc/data/. If you are
comfortable contributing it to the project, then we would love to include it
here (please let me know if you would prefer a different location). If you
would rather not contribute it, then having it in Github is a nice
alternative.

I think it would be nice to send out an OpenLaszlo <view> with a brief
description of the CORS functionality and what you've implemented. I could
take a first pass at this from the email threads, or you could send it
along. OR, if you have a blog entry about it already, let me know and I'd
love to link to it from the OL blog. I just want people to know about this
because it is a really nice piece of work that I think others will be
interested in too.

Let me know your thoughts!
With much thanks,
Amy

On Tue, May 10, 2011 at 5:13 AM, Raju Bitter <
[email protected]> wrote:

> 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