Update pool-server.go

This commit is contained in:
matst80
2025-11-05 18:32:55 +01:00
parent acf2a3a8c1
commit c1599af40b

View File

@@ -566,7 +566,7 @@ func (s *PoolServer) RemoveVoucherHandler(w http.ResponseWriter, r *http.Request
func (s *PoolServer) Serve(mux *http.ServeMux) {
mux.HandleFunc("OPTIONS /", func(w http.ResponseWriter, r *http.Request) {
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")