Added Prefer Header for CORS preflight

This commit is contained in:
elnin0815 2017-03-20 11:20:09 +01:00 committed by GitHub
parent 01e1566886
commit ece4c0d39d
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ public class JpaServerDemo extends RestfulServer {
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");