GitHub user paoloantinori opened a pull request:

    https://github.com/apache/camel/pull/341

    camel-jetty - added option to quickly enable CORS

    While connecting to a jetty endpoint from a development web server running 
on a different port, AJAX calls, fail due to CORS restrictions. 
    
    See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
    
    
    camel-jetty component can be already be configured providing a list of 
Filters with:
    
    ```java
           List<Filter> list = new ArrayList<Filter>() ;
            list.add(new org.eclipse.jetty.servlets.CrossOriginFilter());
    ```
    
    and using already existing `filtersRef` option.
    
    The code in the PR adds a simpler boolean option that enables just the CORS 
filter, for quicker access of the functionality, ideal for development time.
    
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paoloantinori/camel jetty_CORS

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/341.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #341
    
----
commit 903c4e847c802a1afdd0c8c087ef289143e0b3d9
Author: Paolo Antinori <panti...@redhat.com>
Date:   2014-11-26T09:26:06Z

    camel-jetty - added option to quickly enable CORS

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to