Skip to content

Add API security headers#49

Open
BojayL wants to merge 1 commit into
StellarRoute:mainfrom
BojayL:api-security-headers
Open

Add API security headers#49
BojayL wants to merge 1 commit into
StellarRoute:mainfrom
BojayL:api-security-headers

Conversation

@BojayL

@BojayL BojayL commented Jun 19, 2026

Copy link
Copy Markdown

Summary

  • Adds API response security headers for content sniffing, framing, referrer policy, and frame ancestors.
  • Applies the middleware across the API router without changing JSON response bodies.
  • Adds focused middleware coverage for the expected headers and JSON body preservation.
  • Marks the API security header checklist item complete.

Fixes #28.

Validation

  • cargo test -p waveflow-api
  • rustfmt --edition 2021 --check crates/api/src/middleware.rs
  • git diff --check
  • Checked PR-facing files for restricted terms.

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.

[api] Add security response headers middleware

1 participant