Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Add `Authorization` to allowed CORS headers. Closes #3166.

Kailash Nadh0d6af98d00fd
diff --git a/cmd/handlers.go b/cmd/handlers.go
index f4414fab..441ccf80 100644
--- a/cmd/handlers.go
+++ b/cmd/handlers.go
@@ -41,7 +41,7 @@ func initHTTPHandlers(e *echo.Echo, a *App) {
if corsOrigins := trustedURLsToCORSOrigins(a.cfg.Security.TrustedURLs); len(corsOrigins) > 0 {
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: corsOrigins,
- AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept},
+ AllowHeaders: []string{echo.HeaderOrigin, echo.HeaderContentType, echo.HeaderAccept, echo.HeaderAuthorization},
}))
}