Merge pull request #602 from elnin0815/patch-2
Added Prefer Header for CORS preflight
This commit is contained in:
commit
c8a6ca20f5
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue