mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 04:47:02 +00:00
Update to version 11.0.4. Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-09-november-2018--v1104
Former-commit-id: 2c2c32afe31fe94543d145ab8c8475d7b4392ff1
This commit is contained in:
@@ -44,5 +44,11 @@ func main() {
|
||||
})
|
||||
}
|
||||
|
||||
app.Run(iris.Addr(":80"))
|
||||
// iris.WithoutPathCorrectionRedirection | iris#Configuration.DisablePathCorrectionRedirection:
|
||||
// CORS needs the allow origin headers in the redirect response as well, we have a solution for this:
|
||||
// If you use iris >= v11.0.4 then add the `app.Run(..., iris.WithoutPathCorrectionRedirection)`
|
||||
// on the server side if you wish
|
||||
// to directly fire the handler instead of redirection (which is the default behavior)
|
||||
// on request paths like "/v1/mailer/" when "/v1/mailer" route handler is registered.
|
||||
app.Run(iris.Addr(":80"), iris.WithoutPathCorrectionRedirection)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user