Skip to content

Commit

Permalink
typo bruh
Browse files Browse the repository at this point in the history
Signed-off-by: slashexx <[email protected]>
  • Loading branch information
slashexx committed Dec 5, 2024
1 parent be1b15c commit 60771ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/api-gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type CodeRequest struct {
Code string `json:"code"`
}
func enableCors(w http.ResponseWriter) {
w.Header().Set("Access-Control-Allow-Origin", "https://codebrewery.vercel.app")
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS")
w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization")
w.Header().Set("Access-Control-Allow-Credentials", "true") // If required
Expand Down
4 changes: 2 additions & 2 deletions backend/code-execution-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ func executeCode(language string, code string) (string, error) {
cmdOutput, err := cmd.CombinedOutput()
return string(cmdOutput), err
}

// https://codebrewery-api-gateway.onrender.com
func enableCors(w http.ResponseWriter) {
w.Header().Set("Access-Control-Allow-Origin", "https://codebrewery-api-gateway.onrender.com")
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS")
w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
}
Expand Down

0 comments on commit 60771ba

Please sign in to comment.