mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-27 06:46:01 +00:00
fix(api): drop dead per-handler CORS headers
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ func apiOriginGuard(allowed []string) fiber.Handler {
|
||||
|
||||
err := c.Next()
|
||||
|
||||
// Handlers set a wildcard grant; replace it with the allowlist decision.
|
||||
// Drop any grant a handler or upstream set; the allowlist decides.
|
||||
c.Response().Header.Del(headerACAllowOrigin)
|
||||
c.Response().Header.Del(headerACAllowMethods)
|
||||
c.Response().Header.Del(headerACAllowHeaders)
|
||||
|
||||
Reference in New Issue
Block a user