From 7ac0b26d03295d8cfe7c88e1b7a7a829895a5c62 Mon Sep 17 00:00:00 2001 From: Daniel Ichshuk <45372041+danielimkk@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:36:46 +0500 Subject: [PATCH] Update origin to all --- shared/gateway/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/gateway/server.go b/shared/gateway/server.go index a580020..9df76c4 100644 --- a/shared/gateway/server.go +++ b/shared/gateway/server.go @@ -130,7 +130,7 @@ func handleCorsRequest(w http.ResponseWriter, r *http.Request) bool { if origin = r.Header.Get("Origin"); origin == "" { return false } - w.Header().Set("Access-Control-Allow-Origin", origin) + w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Access-Control-Allow-Credentials", "true") if r.Method != "OPTIONS" || r.Header.Get("Access-Control-Request-Method") == "" { return false