We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fce7d3 commit 106629bCopy full SHA for 106629b
1 file changed
backend/internal/middleware/cors/cors.go
@@ -4,7 +4,7 @@ import (
4
"net/http"
5
"os"
6
"strings"
7
- "fmt"
+ //"fmt"
8
9
)
10
@@ -13,10 +13,7 @@ func CORS(next http.Handler) http.Handler {
13
14
origin := r.Header.Get("Origin")
15
16
- if origin == "http://localhost:5173" ||
17
- origin == "https://scintillating-commitment-production-2429.up.railway.app" {
18
- w.Header().Set("Access-Control-Allow-Origin", origin)
19
- }
+ w.Header().Set("Access-Control-Allow-Origin", "*")
20
21
w.Header().Set("Access-Control-Allow-Credentials", "true")
22
w.Header().Set("Access-Control-Allow-Headers", "Authorization, Content-Type")
0 commit comments