Skip to content

sec: Add Content-Security-Policy Header #2014

@gowthamrdyy

Description

@gowthamrdyy

Adding a Content-Security-Policy (CSP) header to next.config.mjs restricts the resources (such as JavaScript, CSS, Images) that the browser is allowed to load. This significantly reduces the risk and impact of Cross-Site Scripting (XSS) attacks.

I am contributing on behalf of GSSoc’26

Metadata

Metadata

Labels

gssoc:assignedGSSoC: Issue assigned to a contributor

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions