Skip to content

Conversation

@iibuan
Copy link
Collaborator

@iibuan iibuan commented Dec 19, 2025

This pull request enhances the security and consistency of HTTP responses by updating session cookie settings and introducing a middleware to set common response headers. The most important changes are grouped below:

Security Improvements:

  • Set HttpOnly and Secure flags on session cookies in session.go to prevent client-side scripts from accessing cookies and to ensure cookies are only sent over HTTPS.

HTTP Response Header Management:

  • Added a new commonHeadersMiddleware in mux-router.go to set the Cache-Control: no-store header on all responses, improving cache control and privacy.
  • Updated the router setup in mux-router.go to apply both the security middleware and the new common headers middleware to all requests.

…gs; add common headers middleware

Signed-off-by: Ismael Ibuan <[email protected]>
@iibuan iibuan self-assigned this Dec 19, 2025
@iibuan iibuan linked an issue Dec 19, 2025 that may be closed by this pull request
@jerricotandelacruz jerricotandelacruz merged commit 1a4d09a into development Dec 19, 2025
3 checks passed
@jerricotandelacruz jerricotandelacruz deleted the 1347-fix-compliance-issues branch December 19, 2025 13:54
@iibuan iibuan restored the 1347-fix-compliance-issues branch December 22, 2025 11:08
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.

Fix Compliance issues

2 participants