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
Copy file name to clipboardExpand all lines: src/content/docs/workers/runtime-apis/bindings/service-bindings/http.mdx
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,3 +56,20 @@ export default {
56
56
},
57
57
};
58
58
```
59
+
60
+
:::note
61
+
62
+
If you construct a new request manually, rather than forwarding an existing one, ensure that you provide a valid and fully-qualified URL with a hostname. For example:
63
+
64
+
```js
65
+
exportdefault {
66
+
asyncfetch(request, env) {
67
+
// provide a valid URL
68
+
let newRequest =newRequest("https://valid-url.com", { method:"GET" });
69
+
let response =awaitenv.WORKER_B.fetch(newRequest);
0 commit comments