Repository navigation
feat(security): ship and verify production security headers - #203
Merged
truthixify merged 1 commit intoOct 17, 2026
Merged
truthixify merged 1 commit into
truthixify merged 1 commit into
Conversation
|
@carelessdept is attempting to deploy a commit to the truthixify's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@carelessdept Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
truthixify
approved these changes
Oct 17, 2026
truthixify
left a comment
Contributor
There was a problem hiding this comment.
Route-specific security headers, serverless smoke coverage, and the production build all pass locally. Approved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #187
Summary
Content-Security-Policy,Strict-Transport-Security,X-Content-Type-Options,X-Frame-Options,Referrer-Policy,Permissions-Policy, andCross-Origin-Opener-Policy) and route-specific cache/content-type rules insrc/utils/security-headers.tsandvercel.json./(.*),middleware.ts):PAGE_SECURITY_HEADERSwith a CSP compatible with self-hosted fonts (/fonts/*,data:), Plausible analytics (https://plausible.io), Soroban/Horizon RPC & status endpoints, inline critical CSS, and generated JSON-LD./feed.xml,/feed/tag/(.*),/sitemap.xml):application/rss+xml; charset=utf-8/application/xml; charset=utf-8,public, max-age=3600, s-maxage=3600, stale-while-revalidate=86400, andFEED_CONTENT_SECURITY_POLICY./assets/(.*),/fonts/(.*),/og/(.*),/press-kit/(.*),/press-kit.zip): immutable 1-year caching for fingerprinted bundles and fonts (Access-Control-Allow-Origin: *on/fonts/*), andmax-age=86400, stale-while-revalidate=604800for OG/press-kit assets./api/subscribe,/api/og): strictdefault-src 'none'; frame-ancestors 'none'CSP,Cache-Control: no-storeandReferrer-Policy: no-referreron/api/subscribe, and immutable PNG caching with security headers on/api/og.vercel.jsonheader behavior inscripts/preview-server.ts,middleware.ts,api/subscribe.ts, andsrc/api/og.tsx.src/__tests__/security-headers.test.ts,tests/subscribe.test.ts, andtests/smoke/serverless.smoke.test.ts(supporting both the local preview smoke server and deployed previews viaPREVIEW_URL).Verification
pnpm format:checkpnpm lint:i18npnpm validate:contentpnpm buildpnpm validate:jsonldpnpm testpnpm test:smoke