Next.js · Senior · Question 64 of 75
Why does Next.js 16 block optimizing images from local IP addresses by default?
- ✓Correct answer: To prevent SSRF - using the image optimizer to reach internal services
- 2Local images are always slower
- 3Local IPs can't serve images over HTTPS
Explanation
The optimizer fetches URLs from the server's network. images.dangerouslyAllowLocalIP should be enabled only on private networks; maximumRedirects now defaults to 3 for the same reason.