Fix typo in stripPrefix middleware docs
This commit is contained in:
parent
685962545a
commit
607faace07
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ The `prefixes` option defines the prefixes to strip from the request URL.
|
||||||
For instance, `/products` also matches `/products/shoes` and `/products/shirts`.
|
For instance, `/products` also matches `/products/shoes` and `/products/shirts`.
|
||||||
|
|
||||||
If your backend is serving assets (e.g., images or JavaScript files), it can use the `X-Forwarded-Prefix` header to properly construct relative URLs.
|
If your backend is serving assets (e.g., images or JavaScript files), it can use the `X-Forwarded-Prefix` header to properly construct relative URLs.
|
||||||
Using the previous example, the backend should return `/products/shoes/image.png` (and not `/images.png`, which Traefik would likely not be able to associate with the same backend).
|
Using the previous example, the backend should return `/products/shoes/image.png` (and not `/image.png`, which Traefik would likely not be able to associate with the same backend).
|
||||||
|
|
||||||
### `forceSlash`
|
### `forceSlash`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue