From f65cc5d877768f751532c90c1bc8a37a9794f0e7 Mon Sep 17 00:00:00 2001 From: soulteary Date: Tue, 19 Dec 2023 20:47:35 +0800 Subject: [PATCH] feat: support CORS request with auth header --- azure/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure/proxy.go b/azure/proxy.go index 9484372..01ef10a 100644 --- a/azure/proxy.go +++ b/azure/proxy.go @@ -106,7 +106,7 @@ func Proxy(c *gin.Context, requestConverter RequestConverter) { if c.Request.Method == http.MethodOptions { c.Header("Access-Control-Allow-Origin", "*") c.Header("Access-Control-Allow-Methods", "GET, OPTIONS, POST") - c.Header("Access-Control-Allow-Headers", "Authorization, Content-Type") + c.Header("Access-Control-Allow-Headers", "Authorization, Content-Type, x-requested-with") c.Status(200) return }