run the next middleware in the chain
This commit is contained in:
parent
2ed4b14cf1
commit
b0379d1219
@ -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)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user