[ 
https://issues.apache.org/jira/browse/JENA-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14707079#comment-14707079
 ] 

Andy Seaborne commented on JENA-1014:
-------------------------------------

A [proposed configuration for 
web.xml|http://mail-archives.apache.org/mod_mbox/jena-users/201507.mbox/%3C55A6974E.9010009%40maudry.com%3E]
 using jetty CrossOriginFilter:

{noformat}
    <!-- CORS filter-->
    <filter>
        <filter-name>cross-origin</filter-name>
        
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
        <init-param>
            <param-name>allowedOrigins</param-name>
            <param-value>*</param-value>
        </init-param>
        <init-param>
            <param-name>allowedMethods</param-name>
            <param-value>GET,POST,DELETE,PUT,HEAD,OPTIONS</param-value>
        </init-param>
        <init-param>
            <param-name>allowedHeaders</param-name>
            <param-value>Accept, Origin, X-Requested-With, Content-Type, 
Last-Modified, Authorization</param-value>
        </init-param>
        <init-param>
            <param-name>exposedHeaders</param-name>
            
<param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>cross-origin</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
{noformat}

> Add CORS support to Fuseki2
> ---------------------------
>
>                 Key: JENA-1014
>                 URL: https://issues.apache.org/jira/browse/JENA-1014
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Fuseki
>    Affects Versions: Fuseki 2.0.0, Fuseki 2.3.0
>            Reporter: Andy Seaborne
>
> Needs to:
> 1. Work in standalone mode.
> 2. Work when run as a WAR file.
> Proposal:
> 1. Add CORS filter from Jetty to the standalone server.
> 2. Leave it to the Tomcat setup for running as a WAR file on the basis it's a 
> choice of deployment.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to