Skip to content

Conversation

@jeromehardaway
Copy link
Contributor

Security Headers Added:

  • Content-Security-Policy (CSP) with strict directives
  • Strict-Transport-Security (HSTS) with 2-year max-age
  • X-Frame-Options: SAMEORIGIN (prevents clickjacking)
  • X-Content-Type-Options: nosniff (prevents MIME sniffing)
  • X-XSS-Protection: enabled with blocking mode
  • Referrer-Policy: strict-origin-when-cross-origin
  • Permissions-Policy: restricts camera, microphone, geolocation
  • X-DNS-Prefetch-Control: enabled for performance

CSP Directives:

  • default-src: self only
  • script-src: allows Clarity analytics and Vercel Analytics
  • img-src: allows Cloudinary and GitHub avatars
  • connect-src: allows GitHub API, Clarity, and Vercel Insights
  • Upgrades insecure requests to HTTPS

Image Configuration:

  • Removed wildcard hostname (**) security vulnerability
  • Restricted to specific domains: res.cloudinary.com, avatars.githubusercontent.com
  • Maintains HTTPS-only protocol enforcement

Tested: Build successful with all headers configured

…guration

Security Headers Added:
- Content-Security-Policy (CSP) with strict directives
- Strict-Transport-Security (HSTS) with 2-year max-age
- X-Frame-Options: SAMEORIGIN (prevents clickjacking)
- X-Content-Type-Options: nosniff (prevents MIME sniffing)
- X-XSS-Protection: enabled with blocking mode
- Referrer-Policy: strict-origin-when-cross-origin
- Permissions-Policy: restricts camera, microphone, geolocation
- X-DNS-Prefetch-Control: enabled for performance

CSP Directives:
- default-src: self only
- script-src: allows Clarity analytics and Vercel Analytics
- img-src: allows Cloudinary and GitHub avatars
- connect-src: allows GitHub API, Clarity, and Vercel Insights
- Upgrades insecure requests to HTTPS

Image Configuration:
- Removed wildcard hostname (**) security vulnerability
- Restricted to specific domains: res.cloudinary.com, avatars.githubusercontent.com
- Maintains HTTPS-only protocol enforcement

Tested: Build successful with all headers configured
@jeromehardaway jeromehardaway self-assigned this Dec 31, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vercel
Copy link
Contributor

vercel bot commented Dec 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
vets-who-code-app Ready Ready Preview, Comment Dec 31, 2025 6:25am

@jeromehardaway jeromehardaway merged commit c36b982 into master Dec 31, 2025
4 checks passed
@jeromehardaway jeromehardaway deleted the feat/security-headers branch December 31, 2025 06:28
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.

2 participants