Skip to content

Commit 0775f6f

Browse files
committed
updating AG
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
1 parent 5a81083 commit 0775f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/api-gateway/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type CodeRequest struct {
1414
Code string `json:"code"`
1515
}
1616
func enableCors(w http.ResponseWriter) {
17-
w.Header().Set("Access-Control-Allow-Origin", "*")
17+
w.Header().Set("Access-Control-Allow-Origin", "https://codebrewery.vercel.app")
1818
w.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS")
1919
w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization")
2020
w.Header().Set("Access-Control-Allow-Credentials", "true") // If required

0 commit comments

Comments
 (0)