Description
Refine the configuration of the @fastify/helmet security plugin in the main Fastify server setup to strengthen HTTP header hardening for production.
Context & Requirements
The project includes @fastify/helmet in package.json, but default options might need tuning for Content Security Policy (CSP) or cross-origin settings compatible with the frontend application hosted on Vercel.
Acceptance Criteria
Implementation Guidance
- Likely files to touch:
src/index.ts or src/app.ts (wherever Fastify instance is created).
- Check helmet documentation for recommended API backend settings.
Testing & Validation
- Run
npm run build and npm test to confirm compilation and test suite stability.
Submission Guidelines
- Open a Pull Request referencing
Closes #<issue-number>.
- Adhere to TypeScript strict rules and existing codebase formatting standards.
Wave complexity: Trivial
Description
Refine the configuration of the
@fastify/helmetsecurity plugin in the main Fastify server setup to strengthen HTTP header hardening for production.Context & Requirements
The project includes
@fastify/helmetinpackage.json, but default options might need tuning for Content Security Policy (CSP) or cross-origin settings compatible with the frontend application hosted on Vercel.Acceptance Criteria
@fastify/helmetinitialization insrc/index.tsor the app factory module.Implementation Guidance
src/index.tsorsrc/app.ts(wherever Fastify instance is created).Testing & Validation
npm run buildandnpm testto confirm compilation and test suite stability.Submission Guidelines
Closes #<issue-number>.Wave complexity: Trivial