cloudflare / cloudflare/workerd

Durable Objects: fetch cf.resolveOverride not respected

Open
#4,129 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

Consider the following code:

```ts
fetch('https://external.foo.com', {
cf: {
resolveOverride: 'bar.com',
},
});
```

I'm observing that when this called from within a Worker, it works as expected - the request hits `bar.com` but the host on origin see's `external.foo.com`.

When the code executes within a Durable Object the `resolveOverride` is not respected, and the request is sent to `external.foo.com`. I've observed this behaviour from a DO method & alarm call.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.