mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Built-in server: CORS — add X-Requested-With to allowed headers
This commit is contained in:
@@ -108,7 +108,7 @@ public final class NettyUtil {
|
||||
.allowCredentials()
|
||||
.allowNullOrigin()
|
||||
.allowedRequestMethods(HttpMethod.GET, HttpMethod.POST, HttpMethod.PUT, HttpMethod.DELETE, HttpMethod.HEAD, HttpMethod.PATCH)
|
||||
.allowedRequestHeaders("origin", "accept", "authorization", "content-type", "x-ijt")
|
||||
.allowedRequestHeaders("origin", "accept", "authorization", "content-type", "x-ijt", "x-requested-with")
|
||||
.build()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user