Skip to content

Commit

Permalink
X_CAPTCHA header added
Browse files Browse the repository at this point in the history
  • Loading branch information
yebenes committed Apr 10, 2017
1 parent 614310a commit 1490e5e
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ public void filter(ContainerRequestContext request, ContainerResponseContext res
HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS,
Joiner.on(",").join(HttpHeaders.AUTHORIZATION, HttpHeaders.ACCEPT, HttpHeaders.CONTENT_TYPE,
CustomHeaders.NO_REDIRECT_HEADER, CustomHeaders.REQUEST_COOKIE_HEADER, CustomHeaders.X_HTTP_METHOD_OVERRIDE,
CustomHeaders.X_CHALLENGE));
CustomHeaders.X_CHALLENGE, CustomHeaders.X_CAPTCHA));
response.getHeaders().add(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS,
Joiner.on(",").join(HttpHeaders.LOCATION, HttpHeaders.DATE));
if (response.getHeaders().containsKey(HttpHeaders.ALLOW)) {
5 changes: 3 additions & 2 deletions src/main/java/io/corbel/lib/ws/model/CustomHeaders.java
Original file line number Diff line number Diff line change
@@ -5,9 +5,10 @@
*/
public class CustomHeaders {

public static final String
public static final String
NO_REDIRECT_HEADER = "No-Redirect",
REQUEST_COOKIE_HEADER = "RequestCookie",
X_HTTP_METHOD_OVERRIDE = "X-HTTP-Method-Override",
X_CHALLENGE = "X-Challenge";
X_CHALLENGE = "X-Challenge",
X_CAPTCHA = "X-Captcha";
}

0 comments on commit 1490e5e

Please sign in to comment.