diff --git a/lib/jurassic/main.go b/lib/jurassic/main.go index 6c7363dc2..8a1411754 100644 --- a/lib/jurassic/main.go +++ b/lib/jurassic/main.go @@ -9,6 +9,7 @@ import ( func handleRequest(w http.ResponseWriter, r *http.Request) { w.Header().Set("Access-Control-Allow-Methods", "HACK") w.Header().Set("Access-Control-Allow-Origin", "*") + if r.Method != "HACK" { w.WriteHeader(http.StatusMethodNotAllowed) return