Patch Changes
-
#4950
05360e43
Thanks @petebacondarwin! - fix: ensure we do not rewrite external Origin headers in wrangler devIn #4812 we tried to fix the Origin headers to match the Host header but were overzealous and rewrote Origin headers for external origins (outside of the proxy server's origin).
This is now fixed, and moreover we rewrite any headers that refer to the proxy server on the request with the configured host and vice versa on the response.
This should ensure that CORS is not broken in browsers when a different host is being simulated based on routes in the Wrangler configuration.
-
#4997
bfeefe27
Thanks @dario-piotrowicz! - chore: add missingdefineNavigatorUserAgent
dependency to useEsbuild hook -
#4966
36692326
Thanks @penalosa! - fix: Report Custom Build failures asUserError
s -
#5002
315a651b
Thanks @dario-piotrowicz! - chore: renamegetBindingsProxy
togetPlatformProxy
initially
getBindingsProxy
was supposed to only provide proxies for bindings,
the utility has however grown, including nowcf
,ctx
andcaches
, to
clarify the increased scope the utility is getting renamed togetPlatformProxy
and itsbindings
field is getting renamedenv
note:
getBindingProxy
with its signature is still kept available, making this
a non breaking change -
Updated dependencies [
05360e43
]:- miniflare@3.20240129.2