From 258d8d38161b9b448292bc297313b9f806541bbf Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Tue, 31 Dec 2024 07:27:23 +0300 Subject: [PATCH] cors --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index eb4c3b0..82d9a3c 100644 --- a/main.go +++ b/main.go @@ -189,7 +189,7 @@ func notify(jsonResponse string) { func main() { router := gin.Default() router.Use(cors.New(cors.Config{ - AllowOrigins: []string{"http://192.168.0.200:*"}, + AllowOrigins: []string{"*"}, AllowMethods: []string{"POST", "GET", "OPTIONS"}, AllowHeaders: []string{"Content-Type", "Authorization"}, ExposeHeaders: []string{"Content-Length"},