We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f34079b + 91be939 commit e1f58eaCopy full SHA for e1f58ea
playground/pkg/middleware/cors.go
@@ -5,8 +5,7 @@ import "net/http"
5
// CorsMiddleware adds CORS headers to allow requests from localhost:4321 during development
6
func CorsMiddleware(next http.Handler) http.Handler {
7
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
8
- // Allow requests from localhost:4321 during development
9
- w.Header().Set("Access-Control-Allow-Origin", "http://localhost:4321")
+ w.Header().Set("Access-Control-Allow-Origin", "https://codepathfinder.dev")
10
w.Header().Set("Access-Control-Allow-Methods", "GET, POST, OPTIONS")
11
w.Header().Set("Access-Control-Allow-Headers", "Content-Type")
12
0 commit comments