Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Service Binding responses are not locked #346

Closed
Cherry opened this issue Aug 18, 2022 · 0 comments
Closed

🐛 BUG: Service Binding responses are not locked #346

Cherry opened this issue Aug 18, 2022 · 0 comments
Labels
bug Something isn't working pages

Comments

@Cherry
Copy link
Contributor

Cherry commented Aug 18, 2022

What version of Wrangler are you using?

2.0.26

What operating system are you using?

Windows

Describe the Bug

Similar issue to cloudflare/workers-sdk#1244.

export async function onRequest({request, env}){
	let asset = await env.ASSETS.fetch(request);
	asset.headers.set("x-test", "hello world");

	return asset;
}

This will work fine in local npx wrangler pages dev, but not in production. You can work-around it with the same solution outlined in cloudflare/workers-sdk#1244, but this is obviously not ideal.

@Cherry Cherry added the bug Something isn't working label Aug 18, 2022
@Skye-31 Skye-31 added the pages label Aug 19, 2022
@GregBrimble GregBrimble changed the title 🐛 BUG: Pages env.ASSETS.fetch() headers mutable in local dev, but not in production 🐛 BUG: Service Binding responses are not locked Aug 23, 2022
@GregBrimble GregBrimble transferred this issue from cloudflare/workers-sdk Aug 23, 2022
@mrbbot mrbbot closed this as completed in 8a8c5ae Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pages
Projects
None yet
Development

No branches or pull requests

2 participants