Skip to content

Commit

Permalink
Allow CORS PATCH method
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed May 8, 2013
1 parent 4344ba8 commit 965521f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/tusd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
// Allow CORS for almost everything. This needs to be revisted / limited to
// routes and methods that need it.
w.Header().Add("Access-Control-Allow-Origin", "*")
w.Header().Add("Access-Control-Allow-Methods", "HEAD,GET,PUT,POST,DELETE")
w.Header().Add("Access-Control-Allow-Methods", "HEAD,GET,PUT,POST,PATCH,DELETE")
w.Header().Add("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Content-Disposition, Final-Length")
w.Header().Add("Access-Control-Expose-Headers", "Location, Range, Content-Disposition")

Expand Down

0 comments on commit 965521f

Please sign in to comment.