From 8aab59a5f4d39cbccecf5fd0adfe0b7782ecf8d0 Mon Sep 17 00:00:00 2001 From: matst80 Date: Wed, 5 Nov 2025 18:32:59 +0100 Subject: [PATCH] Update pool-server.go --- cmd/cart/pool-server.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/cart/pool-server.go b/cmd/cart/pool-server.go index 49d935e..8e83635 100644 --- a/cmd/cart/pool-server.go +++ b/cmd/cart/pool-server.go @@ -566,12 +566,12 @@ func (s *PoolServer) RemoveVoucherHandler(w http.ResponseWriter, r *http.Request func (s *PoolServer) Serve(mux *http.ServeMux) { - mux.HandleFunc("OPTIONS /cart", func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Access-Control-Allow-Origin", "*") - w.Header().Set("Access-Control-Allow-Methods", "GET, PUT, POST, DELETE") - w.Header().Set("Access-Control-Allow-Headers", "Content-Type") - w.WriteHeader(http.StatusOK) - }) + // mux.HandleFunc("OPTIONS /cart", func(w http.ResponseWriter, r *http.Request) { + // w.Header().Set("Access-Control-Allow-Origin", "*") + // w.Header().Set("Access-Control-Allow-Methods", "GET, PUT, POST, DELETE") + // w.Header().Set("Access-Control-Allow-Headers", "Content-Type") + // w.WriteHeader(http.StatusOK) + // }) handleFunc := func(pattern string, handlerFunc func(http.ResponseWriter, *http.Request)) { // Configure the "http.route" for the HTTP instrumentation.