Skip to content

Commit

Permalink
Merge pull request #11 from beclab/fix/upload-add-allowheaders
Browse files Browse the repository at this point in the history
fix: add AllowHeaders for upload
  • Loading branch information
hysyeah authored Jun 14, 2024
2 parents ba2ac5f + 3724c34 commit 2e8aeae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upload/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (server *Server) Init() error {
server.app.Use(cors.New(cors.Config{
AllowOrigins: "*",
AllowMethods: "GET,POST,HEAD,PUT,DELETE,PATCH",
AllowHeaders: "Origin, Content-Type, Accept, Content-Length, Upload-Offset, Upload-Metadata, Upload-Length",
AllowHeaders: "Origin, Content-Type, Accept, Content-Length, Upload-Offset, Upload-Metadata, Upload-Length, X-Authorization, x-authorization",
}))
server.controller = newController(server)
server.fileInfoMgr = fileutils.NewFileInfoMgr()
Expand Down

0 comments on commit 2e8aeae

Please sign in to comment.