@whi/cf-routing - v0.2.0
    Preparing search index...

    Function addCorsHeaders

    • Helper function to add CORS headers to any response

      Parameters

      • response: Response

        The response to add CORS headers to

      Returns Response

      A new response with CORS headers added

      const response = new Response('Hello');
      const corsResponse = addCorsHeaders(response);