From 99d47a4d9c1cb30683a29d55dc1e436464e52c86 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 14:19:34 -0400 Subject: [PATCH] fix: need to enable AllowCredentials --- api/s5/s5.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index e67fb85..f183641 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -183,8 +183,9 @@ func (s *S5API) Routes() (*httprouter.Router, error) { AllowOriginFunc: func(origin string) bool { return true }, - AllowedMethods: []string{"POST"}, - AllowedHeaders: []string{"Authorization", "Content-Type"}, + AllowedMethods: []string{"POST"}, + AllowedHeaders: []string{"Authorization", "Content-Type"}, + AllowCredentials: true, }) routes := map[string]jape.Handler{