Adding the X-DNS-Prefetch-Control: on header to next.config.mjs gives the application control over DNS prefetching. This helps prevent DNS spoofing and unauthorized data leakage through unrequested DNS resolutions.
I am contributing on behalf of GSSoc’26
Adding the
X-DNS-Prefetch-Control: onheader tonext.config.mjsgives the application control over DNS prefetching. This helps prevent DNS spoofing and unauthorized data leakage through unrequested DNS resolutions.I am contributing on behalf of GSSoc’26