From ceced61e601accf2b46c12ac1f2f22f1d93c7b77 Mon Sep 17 00:00:00 2001 From: FireMaskterK <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 26 Oct 2021 18:22:31 +0100 Subject: [PATCH] Fix for Chromium depreciation warning. --- src/main/java/me/kavin/piped/utils/CustomServletDecorator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/utils/CustomServletDecorator.java b/src/main/java/me/kavin/piped/utils/CustomServletDecorator.java index d0ec91f..6a8550a 100644 --- a/src/main/java/me/kavin/piped/utils/CustomServletDecorator.java +++ b/src/main/java/me/kavin/piped/utils/CustomServletDecorator.java @@ -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"); }); }