iya-sts
    Preparing search index...

    Variable preflight

    preflight: () => (req: any, res: any, next: any) => void = preflight

    Type Declaration

      • (): (req: any, res: any, next: any) => void
      • Builds the middleware that answers every OPTIONS request.

        An allowed origin gets the CORS headers; every preflight is answered 204 here, except on a GNAP grant endpoint, where OPTIONS continues to the route because RFC 9635 section 9 makes it the discovery request.

        Returns (req: any, res: any, next: any) => void

        the express middleware