From 9564ca566c79caafcdfca44f2058cd5decbe25f3 Mon Sep 17 00:00:00 2001 From: AzenKain Date: Tue, 31 Mar 2026 23:03:15 +0700 Subject: [PATCH] UPDATE: try fix cookie --- cmd/api/server.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/api/server.go b/cmd/api/server.go index 4496d94..085e67f 100644 --- a/cmd/api/server.go +++ b/cmd/api/server.go @@ -60,14 +60,13 @@ func (s *FiberServer) SetupServer(sqlPg sqlc.DBTX, sqlTile *sql.DB, redis cache. s.App.Use(cors.New(cors.Config{ AllowOrigins: []string{ "http://localhost:3000", + "https://localhost:3000", "http://localhost:3001", - "http://localhost:3002", + "https://localhost:3001", "http://localhost:3344", - "http://localhost:5173", - "http://localhost:5500", }, - AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"}, - AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"}, + AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"}, + AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"}, AllowCredentials: true, }))