Skip to content

Commit

Permalink
enabled CORS support on the API Gateway REST layer
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittmann committed Feb 4, 2015
1 parent 30c3db6 commit d6146ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gateway/platforms/war/wildfly8/api/pom.xml
Expand Up @@ -87,6 +87,13 @@
<artifactId>jboss-servlet-api_3.0_spec</artifactId>
<scope>provided</scope>
</dependency>

<!-- Third Party -->
<dependency>
<groupId>org.overlord</groupId>
<artifactId>overlord-commons-gwt</artifactId>
</dependency>

</dependencies>

<build>
Expand Down
10 changes: 10 additions & 0 deletions gateway/platforms/war/wildfly8/api/src/main/webapp/WEB-INF/web.xml
Expand Up @@ -27,6 +27,16 @@
<url-pattern>/*</url-pattern>
</filter-mapping>

<!-- CORS Filter -->
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.overlord.commons.gwt.server.filters.SimpleCorsFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<security-constraint>
<web-resource-collection>
<web-resource-name>apiman-gateway-api</web-resource-name>
Expand Down

0 comments on commit d6146ea

Please sign in to comment.