Skip to content

Add CSP headers, CORS config, CAPTCHA fix, and distributed tracing (#870, #869, #868, #808) - #984

Open
phertyameen wants to merge 1 commit into
MettaChain:mainfrom
phertyameen:fix/csp-cors-captcha-tracing
Open

Add CSP headers, CORS config, CAPTCHA fix, and distributed tracing (#870, #869, #868, #808)#984
phertyameen wants to merge 1 commit into
MettaChain:mainfrom
phertyameen:fix/csp-cors-captcha-tracing

Conversation

@phertyameen

@phertyameen phertyameen commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Changes

Add proper CSP headers and security middleware (#870)

  • Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Strict-Transport-Security, Referrer-Policy, Permissions-Policy

Implement proper CORS configuration (#869)

  • Use CORS_ORIGINS env var instead of wildcard
  • Refuse wildcard origins in production mode

Fix CAPTCHA verification bypass in non-production mode (#868)

  • Require CAPTCHA by default in all environments
  • Add CAPTCHA_BYPASS env var for development-only bypass
  • Log warning when CAPTCHA is bypassed

Add distributed tracing via OpenTelemetry TraceInterceptor (#808)

  • UUID trace IDs for request tracking
  • Request start/completion/failure logging with duration
  • Global interceptor for all HTTP requests

Closes #808
Closes #868
Closes #869
Closes #870

- Add proper CSP headers and security middleware (MettaChain#870): Content-Security-Policy, X-Frame-Options, HSTS, Referrer-Policy, Permissions-Policy
- Implement proper CORS configuration (MettaChain#869): Use CORS_ORIGINS env var, refuse wildcard in production
- Fix CAPTCHA verification bypass (MettaChain#868): Require CAPTCHA by default, add CAPTCHA_BYPASS env var for dev
- Add distributed tracing via OpenTelemetry TraceInterceptor (MettaChain#808): UUID trace IDs, request logging with duration
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@phertyameen Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant