Skip to content

Commit

Permalink
fix: allow post and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
fdemir committed Jan 23, 2024
1 parent a1075dd commit 04fdd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func HandleBase(w http.ResponseWriter, r *http.Request, s *Source, opt *ServeOpt
}

w.Header().Set("Content-Type", "application/json")
w.Header().Set("Access-Control-Allow-Methods", "GET")
w.Header().Set("Access-Control-Allow-Methods", "GET, POST, DELETE")

if !opt.noCors {
w.Header().Set("Access-Control-Allow-Origin", "*")
Expand Down

0 comments on commit 04fdd06

Please sign in to comment.