Skip to content

Commit

Permalink
Allow CORS Offset header
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed May 8, 2013
1 parent 965521f commit bed4d16
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 @@ -56,7 +56,7 @@ func main() {
// routes and methods that need it.
w.Header().Add("Access-Control-Allow-Origin", "*")
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-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Content-Disposition, Final-Length, Offset")
w.Header().Add("Access-Control-Expose-Headers", "Location, Range, Content-Disposition")

if r.Method == "OPTIONS" {
Expand Down

0 comments on commit bed4d16

Please sign in to comment.