@hpke/ohttp
    Preparing search index...

    Function createOhttpFetchForwarder

    • Create a forward callback for createOhttpGatewayHandler that fetches the target request. Requests to origins outside allowedOrigins are answered with 403 without being sent. Redirects are returned to the client instead of being followed, so they cannot leave the allowed origins. Content-Encoding and Content-Length are removed from responses with a body, because fetch returns the decoded body while retaining those headers.

      Parameters

      Returns (request: Request) => Promise<Response>