Skip to content

security: add Content-Security-Policy and security hardening headers - #17

Merged
viccoder-oops merged 1 commit into
mainfrom
security/content-security-policy
Aug 6, 2026
Merged

security: add Content-Security-Policy and security hardening headers#17
viccoder-oops merged 1 commit into
mainfrom
security/content-security-policy

Conversation

@viccoder-oops

Copy link
Copy Markdown
Owner

Summary

  • Adds a Content-Security-Policy header restricting scripts, styles, images, fonts, and network connections to trusted origins only
  • Adds X-Frame-Options: DENY to prevent clickjacking
  • Adds X-Content-Type-Options: nosniff to prevent MIME sniffing attacks
  • Adds Referrer-Policy and Permissions-Policy headers for defence in depth
  • CSP connect-src explicitly allows Stellar testnet and mainnet RPC/Horizon endpoints so the dashboard keeps working

Changes

  • next.config.js: added a headers() async function that applies the security header set to all routes via the /(.*) pattern

Closes #11

@viccoder-oops
viccoder-oops merged commit a0048dd into main Aug 6, 2026
1 check failed
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.

security: add Content Security Policy headers

1 participant