Skip to content

sec: Add X-DNS-Prefetch-Control Header #2016

@gowthamrdyy

Description

@gowthamrdyy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions