We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a81083 commit 0775f6fCopy full SHA for 0775f6f
backend/api-gateway/main.go
@@ -14,7 +14,7 @@ type CodeRequest struct {
14
Code string `json:"code"`
15
}
16
func enableCors(w http.ResponseWriter) {
17
- w.Header().Set("Access-Control-Allow-Origin", "*")
+ w.Header().Set("Access-Control-Allow-Origin", "https://codebrewery.vercel.app")
18
w.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS")
19
w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization")
20
w.Header().Set("Access-Control-Allow-Credentials", "true") // If required
0 commit comments