Skip to main content
Participant
April 3, 2013
Question

Access-Control-Allow-Origin

  • April 3, 2013
  • 1 reply
  • 1170 views

I'm creating a web app that connects to different sites and services and gives their status, up/down/error etc.  For sites that use IIS, I had to add in the HTTP Response Header an entry for Access-Control-Allow-Origin and the value of the origin url. 

However, on our adobe connect server, I can't figure out how to allow this!  I think its using Jetty or tomcat, here is the folder on the connect server where web.xml files are located.

E:\Breeze\8.2.0.1

can anyone help?  thanks

    This topic has been closed for replies.

    1 reply

    PW2013Author
    Participant
    April 5, 2013

    I looked at these two pages:

    http://wiki.eclipse.org/Jetty/Feature/Cross_Origin_Filter

    http://stackoverflow.com/questions/8303162/jetty-cross-origin-filter

    I download the jetty servlet.jar, put it in my E:\Breeze\8.2.0.1\appserv\web\WEB-INF\lib folder, and add the following lines in my E:\Breeze\8.2.0.1\appserv\web\WEB-INF\web.xml file:

    <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>

    but when I do, I get a 404 The requested resource () is not available when I try to reach the site in a web browser.

    I'm using java version 1.6 and I've tried every version of the jetty-serlet.jar listed on the site above.