Skip to content

Add support for CORS #159

Description

@emxsys

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>
-->
  • Add instructions for enabling CORS to the README

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions