We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9231327 commit 67f8083Copy full SHA for 67f8083
server.go
@@ -349,7 +349,7 @@ func (s *Server) serveFile(w http.ResponseWriter, r *http.Request) {
349
// Note that filedrop code is URL prefix-agnostic, so request URI doesn't
350
// matters much.
351
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
352
- w.Header().Set("Access-Control-Allowed-Origin", s.Conf.AllowedOrigins)
+ w.Header().Set("Access-Control-Allow-Origin", s.Conf.AllowedOrigins)
353
if r.Method == http.MethodPost {
354
s.acceptFile(w, r)
355
} else if
0 commit comments