From f127e2f02904d3f9699c6be19a1f5f9077bafec5 Mon Sep 17 00:00:00 2001 From: AzenKain Date: Sun, 19 Apr 2026 19:57:09 +0700 Subject: [PATCH] fix bug --- cmd/api/server.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cmd/api/server.go b/cmd/api/server.go index 19be360..57ee6b2 100644 --- a/cmd/api/server.go +++ b/cmd/api/server.go @@ -57,21 +57,19 @@ func NewHttpServer() *FiberServer { } func (s *FiberServer) SetupServer( - sqlPg sqlc.DBTX, - sqlTile *sql.DB, - sqlRasterTile *sql.DB, - redis cache.Cache, - sclient storage.Storage, + sqlPg sqlc.DBTX, + sqlTile *sql.DB, + sqlRasterTile *sql.DB, + redis cache.Cache, + sclient storage.Storage, oauth *oauth2.Config, ) { // Apply CORS middleware s.App.Use(cors.New(cors.Config{ AllowOrigins: []string{ "http://localhost:3000", - "https://localhost:3000", "http://localhost:3001", - "https://localhost:3001", - "http://localhost:3344", + "https://history-admin.kain.id.vn", }, AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"}, AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"},