You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep Response block HTTP replies as JSON regardless of custom header casing.
Reserve cookie, browser-policy, redirect, and transport headers for the server while preserving response data, status codes, and ordinary custom headers.
Document the header restrictions and cover the HTTP response boundary with regression tests.
Type of Change
Bug fix
Testing
127 tests passed across response security, workflow utilities, and v1/v2 workflow execution routes.
All five security regression cases failed before the fix; removing each of the four guards also failed the regression suite.
App type-check, lint, all 51 repository audits, block-registry check, and docs-manifest check passed.
Checklist
Code follows project style guidelines
Self-reviewed my changes
Tests added/updated and passing (new tests pass the test-audit authoring gate)
[Critical risk] Constrains which HTTP headers workflow responses can set.
The PR appears safe to merge; the previously reported browser-policy header gap is fixed.
Summary
The PR constrains Response block HTTP headers while preserving JSON responses, status codes, and ordinary custom headers.
Reserves additional browser-policy and legacy security headers.
Extends boundary tests and documents the restriction.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Response block output] --> B[Normalize and filter headers]
B --> C[Set JSON content type and nosniff]
C --> D[Public HTTP response]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Checklist
test-auditauthoring gate)