Skip to content

security: register SecureHeaders pipe in routes template#27

Open
renich wants to merge 1 commit into
amberframework:mainfrom
renich:security/register-secure-headers-pipe
Open

security: register SecureHeaders pipe in routes template#27
renich wants to merge 1 commit into
amberframework:mainfrom
renich:security/register-secure-headers-pipe

Conversation

@renich

@renich renich commented Jun 15, 2026

Copy link
Copy Markdown

Enables the SecureHeaders pipe in the generated application route template (routes.cr.ecr) by default in the :web pipeline.

This completes the registration of the SecureHeaders pipe (which was added in the core framework in amberframework/amber#1390) so that newly generated apps will benefit from baseline security headers (XSS, Frame Options, nosniff, HSTS) out of the box.

Co-developed-by: Gemini AI renich+gemini@woralelandia.com
Signed-off-by: Rénich Bon Ćirić renich@woralelandia.com

Updates the routes.cr template to register Amber::Pipe::SecureHeaders.new
in the default web pipeline. This ensures newly generated applications
automatically enforce baseline security headers (XSS, Frame Options, nosniff, HSTS) out of the box.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
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.

1 participant