Skip to content

Commit 82adc2b

Browse files
pontasanicyJoseph
andauthored
Update docs/01-app/03-api-reference/02-components/image.mdx
Sorry, and thank you for pointing that out. I prefer the latter that explicitly mentions internal URLs, since the intention is to make the restrictions and behavior clearer to developers. Co-authored-by: Joseph <[email protected]>
1 parent ef3289d commit 82adc2b

File tree

1 file changed

+1
-4
lines changed
  • docs/01-app/03-api-reference/02-components

1 file changed

+1
-4
lines changed

docs/01-app/03-api-reference/02-components/image.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,7 @@ export default function Page() {
8484
}
8585
```
8686

87-
> **Good to know**: When specifying an external URL or API Routes (internal URL) as the image source, the image may be processed through Next.js built-in [Image Optimization](/docs/app/getting-started/images).
88-
> For security reasons, when Image Optimization is used, request headers are not forwarded to API Routes or external URLs.
89-
> If retrieving the image data requires authentication, consider using the [unoptimized](#unoptimized) property to disable Image Optimization.
90-
87+
> Good to know: When Next.js Image Optimization is used, request headers are not forwarded to the image source, even when that source is your own Next.js server (API Routes or assets from public folder). If retrieving the image requires authentication, consider using the [unoptimized](#unoptimized) property to disable Image Optimization.
9188
#### `alt`
9289

9390
The `alt` property is used to describe the image for screen readers and search engines. It is also the fallback text if images have been disabled or an error occurs while loading the image.

0 commit comments

Comments
 (0)