Myths on Maps

  • Log in
  • « Find the next available ID for people, etc.
  • Pausanias events »

CORS and Jetty/eXist

Posted by gregster on 12 Jun 2015 in Documentation

If you want to make an AJAX call to get, say, some JSON from eXist you'll need to allow it (because of the CORS thing).
You can add a stanza to Jetty's web.xml file ($exist-home-dir/webapp/WEB-INF/web.xml) like this:

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

which will allow all external requests. Probably not what you want in production, but you can fiddle the url-pattern to suit.

This entry was posted by Greg and filed under Documentation.

Myths on Maps

This project will focus on deploying an interactive map of Europe with overlays for Greek and Roman myths, history, people and events.
SVN instructions for MoM editors
Development URL
HCMC Blogs home
  • Archives
  • Categories

Search

XML Feeds

  • Atom: Posts
  • RSS 2.0: Posts
What is RSS?

This collection ©2023 by admin • Help • CMS + user community