From 60535540c26638a9e579fbfa8df813ace10ca0a5 Mon Sep 17 00:00:00 2001 From: Gvidow <96253031+Gvidow@users.noreply.github.com> Date: Sun, 25 Feb 2024 20:53:40 +0300 Subject: [PATCH 1/2] dev4 update: app.go --- internal/app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index bdcbea2..f2706ef 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -142,7 +142,7 @@ func Run(ctx context.Context, log *log.Logger, cfg ConfigFiles) { }) wsHandler := deliveryWS.New(log, messageCase, notifyCase, - deliveryWS.SetOriginPatterns([]string{"pinspire.online", "pinspire.online:*"})) + deliveryWS.SetOriginPatterns([]string{"pinspire.site", "pinspire.site:*"})) cfgServ, err := server.NewConfig(cfg.ServerConfigFile) if err != nil { From 9705ce70fbde42c01d7d752de96247759e89aa2e Mon Sep 17 00:00:00 2001 From: Gvidow <96253031+Gvidow@users.noreply.github.com> Date: Sun, 25 Feb 2024 20:55:46 +0300 Subject: [PATCH 2/2] dev4 update: router.go --- internal/api/server/router/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/server/router/router.go b/internal/api/server/router/router.go index 434ed62..cb1bfa4 100644 --- a/internal/api/server/router/router.go +++ b/internal/api/server/router/router.go @@ -34,8 +34,8 @@ func (r Router) RegisterRoute(handler *deliveryHTTP.HandlerHTTP, wsHandler *deli cfgCSRF.PathToGet = "/api/v1/csrf" c := cors.New(cors.Options{ - AllowedOrigins: []string{"https://pinspire.online", "https://pinspire.online:1443", - "https://pinspire.online:1444", "https://pinspire.online:1445", "https://pinspire.online:1446", "https://pinspire.online:8081"}, + AllowedOrigins: []string{"https://pinspire.site", "https://pinspire.site:1443", + "https://pinspire.site:1444", "https://pinspire.site:1445", "https://pinspire.site:1446", "https://pinspire.site:8081"}, AllowedMethods: []string{http.MethodGet, http.MethodPost, http.MethodDelete, http.MethodPut}, AllowCredentials: true, AllowedHeaders: []string{"content-type", cfgCSRF.Header},