Skip to content

Commit 103e71f

Browse files
Reasonable-SolutionsybelMekksindrerh2
committed
Add info box about redirect permissions
Co-Authored-By: ybelMekk <[email protected]> Co-Authored-By: sindrerh2 <[email protected]>
1 parent 4808f97 commit 103e71f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/workloads/application/how-to/redirect.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ The `redirects` field specifies URL redirects. It is structured as a mapping fro
1111

1212
A successful redirect will return a `302 Moved Temporarily` HTTP status code with location header set to the target URL.
1313

14+
!!! info "Explicit redirect permission"
15+
The ingress being redirected has to have `nais.io/allow-redirect: true` set.
16+
This can be set as an annotation in the application spec.
17+
18+
1419
??? note "Status code for redirects"
15-
The status code can not be overridden.
20+
The status code can not be overridden.
1621

1722
### Structure
1823

@@ -52,4 +57,4 @@ spec:
5257

5358
In this example:
5459

55-
- Requests to `http://example-old.nais.io` are redirected to `http://example-new.nais.io`.
60+
- Requests to `http://example-old.nais.io` are redirected to `http://example-new.nais.io`.

0 commit comments

Comments
 (0)