콘텐츠로 이동
한국어

redirectExternal

이 콘텐츠는 아직 번역되지 않았습니다.

redirectExternal(url, status?): HttpResponse

Defined in: src/http/Route.ts:329

Redirect to a target that may leave this origin — the audited opt-in to redirect’s same-origin rule.

Being a separate function is the whole design: grep redirectExternal enumerates every deliberate off-origin hop in a codebase, which a boolean tucked into a third argument never could. Pass a constant or a value you allowlisted yourself — never a raw request parameter, which is precisely the open redirect redirect refuses.

Control characters are still rejected: those are a header-injection vector, not a question of origin.

string

number = Status.Found

HttpResponse