From c6a183f766adc1217da3d49d42450a0110dde58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 1 Mar 2021 18:20:17 +0100 Subject: [PATCH] set AllowCredentials to true. --- internal/http/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/manager.go b/internal/http/manager.go index e8fda212..185df234 100644 --- a/internal/http/manager.go +++ b/internal/http/manager.go @@ -35,7 +35,7 @@ func New(WebSocketManager types.WebSocketManager, ApiManager types.ApiManager, c AllowedMethods: []string{"GET", "POST", "DELETE", "OPTIONS"}, AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, ExposedHeaders: []string{"Link"}, - AllowCredentials: false, + AllowCredentials: true, MaxAge: 300, // Maximum value not ignored by any of major browsers })) router.Use(middleware.RequestID) // Create a request ID for each request