There was an error while loading. Please reload this page.
1 parent f51addd commit e8efe0eCopy full SHA for e8efe0e
1 file changed
src/Giraffe/Core.fs
@@ -317,6 +317,7 @@ module Core =
317
/// <param name="next"></param>
318
/// <param name="ctx"></param>
319
/// <returns>A Giraffe <see cref="HttpHandler"/> function which can be composed into a bigger web application.</returns>
320
+ [<Obsolete("Use safeRedirectTo to prevent open redirect vulnerabilities.")>]
321
let redirectTo (permanent: bool) (location: string) : HttpHandler =
322
fun (_next: HttpFunc) (ctx: HttpContext) ->
323
ctx.Response.Redirect(location, permanent)
0 commit comments