Skip to content

Quality: Add security headers and CSP to block malicious domains#353

Open
andoan16 wants to merge 1 commit into
kern:mainfrom
andoan16:contribai/improve/quality/add-security-headers-and-csp-to-block-ma
Open

Quality: Add security headers and CSP to block malicious domains#353
andoan16 wants to merge 1 commit into
kern:mainfrom
andoan16:contribai/improve/quality/add-security-headers-and-csp-to-block-ma

Conversation

@andoan16
Copy link
Copy Markdown

Problem

Create Next.js configuration file with security headers including Content Security Policy (CSP) to prevent the browser from loading resources from the suspicious domains mentioned in the issue (infoworldbriefs.com, changelesschoir.com, signedquick.com) and to mitigate the impact of any potential injection vulnerabilities.

Severity: critical
File: next.config.ts

Solution

Create next.config.ts with the following content:

Changes

  • next.config.ts (new)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

Closes #339

Create Next.js configuration file with security headers including Content Security Policy (CSP) to prevent the browser from loading resources from the suspicious domains mentioned in the issue (infoworldbriefs.com, changelesschoir.com, signedquick.com) and to mitigate the impact of any potential injection vulnerabilities.

Affected files: next.config.ts

Signed-off-by: andoan16 <33853760+andoan16@users.noreply.github.com>
@Technetium1
Copy link
Copy Markdown

HSTS should not be set here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suspicious domains on file.pizza

2 participants