Skip to content

fix(astro): Use explicit ResponseInit when injecting meta tags in response#21021

Merged
andreiborza merged 1 commit into
developfrom
ab/fix-astro-response-headers
May 20, 2026
Merged

fix(astro): Use explicit ResponseInit when injecting meta tags in response#21021
andreiborza merged 1 commit into
developfrom
ab/fix-astro-response-headers

Conversation

@andreiborza
Copy link
Copy Markdown
Member

The previous approach of new Response(body, originalResponse) drops certain headers when running on cloudflare. The fix replaces this with an explicit init and a header clone, similarly to how we already do it in the cloudflare and remix sdks.

Closes: #21008

…ponse

The previous approach of `new Response(body, originalResponse)` drops certain
headers when running on cloudflare. The fix replaces this with an explicit init
and a header clone, similarly to how we already do it in the cloudflare and
remix sdks.

Closes: #21008
@andreiborza andreiborza requested a review from a team as a code owner May 20, 2026 02:38
@andreiborza andreiborza requested review from JPeer264 and Lms24 May 20, 2026 02:38
@andreiborza andreiborza merged commit 00fcc87 into develop May 20, 2026
83 of 85 checks passed
@andreiborza andreiborza deleted the ab/fix-astro-response-headers branch May 20, 2026 05:13
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.

[@sentry/astro] injectMetaTagsInResponse uses broken Response clone pattern; drops security headers in Cloudflare Workers runtime

2 participants