diff --git a/graphql/handler/transport/options.go b/graphql/handler/transport/options.go index 674a00c7f09..6b725ff3e3e 100644 --- a/graphql/handler/transport/options.go +++ b/graphql/handler/transport/options.go @@ -18,8 +18,8 @@ func (o Options) Supports(r *http.Request) bool { func (o Options) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) { switch r.Method { case http.MethodOptions: - w.WriteHeader(http.StatusOK) w.Header().Set("Allow", "OPTIONS, GET, POST") + w.WriteHeader(http.StatusOK) case http.MethodHead: w.WriteHeader(http.StatusMethodNotAllowed) }