run the next middleware in the chain
This commit is contained in:
parent
0f3cbd6f05
commit
1bd42249ce
@ -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