From 0be3cf9db1ffb25efc51c6a835941aef395a5e12 Mon Sep 17 00:00:00 2001 From: tdatIT Date: Sun, 23 Jun 2024 15:46:50 +0700 Subject: [PATCH] update method --- internal/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/server.go b/internal/server.go index 9958a60..5a20056 100644 --- a/internal/server.go +++ b/internal/server.go @@ -103,9 +103,9 @@ func NewServer( app.Use(recoverFiber.New(recoverConfig)) app.Use(cors.New(cors.Config{ - AllowOrigins: "http://127.0.0.1:5500, http://127.0.0.1:5173", - AllowHeaders: "Origin, X-Requested-With, Content-Type, Accept, Authorization", - AllowMethods: "GET,HEAD,OPTIONS,POST,PUT", + AllowOrigins: "http://127.0.0.1:5500, http://127.0.0.1:5173, http://localhost:5500, http://localhost:5173", + AllowHeaders: "*", + AllowMethods: "*", })) //providing basic authentication for metrics endpoints