Skip to content

Add a handler to every route adding response header#10

Open
peb-adr wants to merge 1 commit into
OpenSlides:mainfrom
peb-adr:hsts
Open

Add a handler to every route adding response header#10
peb-adr wants to merge 1 commit into
OpenSlides:mainfrom
peb-adr:hsts

Conversation

@peb-adr

@peb-adr peb-adr commented Mar 26, 2024

Copy link
Copy Markdown
Member

... if $HSTS is set at startup

@peb-adr peb-adr requested a review from jsangmeister March 26, 2024 18:01
@peb-adr

peb-adr commented Mar 26, 2024

Copy link
Copy Markdown
Member Author

I'm a bit unsure how good this solution really is.
It seems a bit cumbersome to iterate over each route to add N handlers that will add the response headers, but I couldn't find a more central place to take care of it in caddy's docs.

@jsangmeister jsangmeister left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sounds sensible

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