NASAWorldWind / WorldWindServerKit

The NASA WorldWind Server Kit (WWSK) is an open source Java project that assembles GeoServer for easy distribution and implementation.
91 stars 54 forks source link

Add support for CORS #159

Open emxsys opened 6 years ago

emxsys commented 6 years ago

Add support for cross-origin resource sharing (CORS). By default, CORS will be disabled but easily enabled by uncommenting a section of the webapps/geoserver/WEB-INF/web.xml file

TODO:

<!-- Uncomment this section to allow cross-origin resource sharing (CORS)
   <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>
   </filter>
    <filter-mapping>
        <filter-name>cross-origin</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
-->