Browse files

Adding headers used for pagination.

  • Loading branch information...
1 parent a7732ed commit c42a24416f328a489b962a45b78d44c6ef7c4292 @danbev danbev committed Jan 28, 2013
View
3 src/main/java/org/jboss/aerogear/controller/demo/config/CorsConfigProducer.java
@@ -38,9 +38,10 @@ public CorsConfiguration demoConfig() {
return CorsConfig.enableCorsSupport()
.anyOrigin()
.enableCookies()
+ .exposeHeaders("accept", "origin", "content-type", "link", "ag-links-next", "ag-links-previous")
.maxAge(20)
.enableAllRequestMethods()
- .build();
+ .validRequestHeaders("accept", "origin", "content-type", "link", "ag-links-next", "ag-links-previous");
}
}

0 comments on commit c42a244

Please sign in to comment.