Dev

Security headers are written before asynchronous streaming starts

Streaming responses now have their protective HTTP security headers recorded before async streaming begins. This reduces the risk of conflicts when a stream is committed or fails, while keeping access rules, CSRF, Range and streaming behavior unchanged.

The application now writes protective HTTP security headers before asynchronous response streaming begins in both the browser and Handoff chains. The headers are recorded through HeaderWriterFilter before media data starts flowing, which avoids conflicting header writes during commit and filter return. This reduces the risk of rare Tomcat MimeHeaders failures in streaming responses. For users, media playback, downloads and streaming should be more stable; access rules, CSRF, Range/streaming behavior and dependency versions remain unchanged, and no new public feature is added. Focused tests cover early headers, successful and failing streaming, authorization, and denial paths.

← Back to news