@org/source
    Preparing search index...

    Function optionsHandler

    • Handle CORS preflight (OPTIONS) requests for API Gateway.

      Parameters

      • event: APIGatewayProxyEventV2

      Returns Promise<
          {
              body: string;
              headers: {
                  "access-control-allow-headers": string;
                  "access-control-allow-methods": string;
                  "access-control-allow-origin": string;
                  "access-control-max-age": string;
              };
              statusCode: number;
          },
      >

      Response object with status code 204, CORS headers allowing all origins and the headers/methods required for browser preflight, and an empty body.