Skip to content

fix: secure express API templates with helmet and cors#249

Open
mramansayyad wants to merge 1 commit into
celtrix-os:mainfrom
mramansayyad:fix/express-security-headers
Open

fix: secure express API templates with helmet and cors#249
mramansayyad wants to merge 1 commit into
celtrix-os:mainfrom
mramansayyad:fix/express-security-headers

Conversation

@mramansayyad

Copy link
Copy Markdown

Description of Changes

This PR addresses security concerns for Express API templates generated by Celtrix.

Specifically, this PR:

  1. Adds helmet and cors middlewares to the base server templates:
    • templates/mean/server/server.js
    • templates/mern/server/server.js
    • templates/mevn/server/server.js
  2. This ensures that any generated Express APIs automatically start with production-ready security headers (like XSS protection, clickjacking prevention, CORS restrictions, etc.) out-of-the-box.

Related Issues

Fixes #247

Verification

  • Verified the templates compile successfully and contain the correct require statements and middleware setup.

GSSoC '26

  • Yes, I am participating in GirlScript Summer of Code and would like to build this.

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.

[FEAT] Secure Express API headers using helmet middleware

1 participant