Skip to content

Add support for CORS #159

@emxsys

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions