Fix for Chromium depreciation warning.

This commit is contained in:
FireMaskterK 2021-10-26 18:22:31 +01:00
parent f731308dcc
commit ceced61e60
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -31,7 +31,7 @@ public class CustomServletDecorator implements AsyncServlet {
HttpHeaderValue headerValue = HttpHeaderValue.of("app;dur=" + (System.nanoTime() - before) / 1000000.0);
return response.withHeader(HEADER, headerValue).withHeader(ACCESS_CONTROL_ALLOW_ORIGIN, "*")
.withHeader(ACCESS_CONTROL_ALLOW_HEADERS, "*");
.withHeader(ACCESS_CONTROL_ALLOW_HEADERS, "*, Authorization");
});
}