Skip to content

Commit

Permalink
Merge pull request #602 from elnin0815/patch-2
Browse files Browse the repository at this point in the history
Added Prefer Header for CORS preflight
  • Loading branch information
jamesagnew committed Mar 20, 2017
2 parents 2238b11 + ece4c0d commit c8a6ca2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ protected void initialize() throws ServletException {
CorsInterceptor corsInterceptor = new CorsInterceptor(config);
config.addAllowedHeader("Origin");
config.addAllowedHeader("Accept");
config.addAllowedHeader("Prefer");
config.addAllowedHeader("X-Requested-With");
config.addAllowedHeader("Content-Type");
config.addAllowedHeader("Access-Control-Request-Method");
Expand Down

0 comments on commit c8a6ca2

Please sign in to comment.