Node 22 stabilizes the fetch API. It is now feature-compatible with browsers' fetch API. This is generally good, but it also adds more restrictions to what a valid HTTP request can be. The header field we are setting to pass the Wikipedia domain to that wiki proxy is HOST (see the configuration). This is problematic because HOST is a forbidden header.
- https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_request_header
- https://fetch.spec.whatwg.org/#forbidden-request-header
So, the nodes fetch API won't accept the HOST header. The wiki proxy will receive the request without the HOST header and will return a 404 response.