run the next middleware in the chain

This commit is contained in:
Chris Cromer 2023-01-31 23:22:13 -03:00 committed by Martin Araneda
parent 0f3cbd6f05
commit 1bd42249ce
1 changed files with 2 additions and 0 deletions

View File

@ -13,5 +13,7 @@ func Cors(handler http.Handler) http.Handler {
writer.Header().Set("Access-Control-Allow-Origin", origin)
writer.Header().Set("Access-Control-Allow-Headers", "Content-Type")
}
handler.ServeHTTP(writer, request)
})
}