Skip to content

CE: Add HTTP security headers middleware#300

Merged
ericflo merged 1 commit intomainfrom
ce/security-headers
Apr 15, 2026
Merged

CE: Add HTTP security headers middleware#300
ericflo merged 1 commit intomainfrom
ce/security-headers

Conversation

@ericflo
Copy link
Copy Markdown
Owner

@ericflo ericflo commented Apr 15, 2026

What

Add security headers middleware (CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy) to all responses from modelrelay-cloud.

Why

Standard security hardening — protects against clickjacking, XSS, MIME sniffing. CSP allows Stripe JS (js.stripe.com) for the checkout flow and 'unsafe-inline' for existing inline scripts/styles.

Test

cargo test passes (19 tests), new responses_include_security_headers test verifies all headers are present on responses.

@ericflo ericflo merged commit c66e4a1 into main Apr 15, 2026
12 checks passed
@ericflo ericflo deleted the ce/security-headers branch April 15, 2026 23: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.

1 participant