iya-sts
    Preparing search index...
    guard: () => (req: any, res: any, next: any) => any = guard

    Type Declaration

      • (): (req: any, res: any, next: any) => any
      • Returns the express middleware that refuses, on every endpoint, a query parameter named __proto__, constructor or prototype and a query value holding a control character.

        A refused request is answered 400, in both modes: in the error shape of the JSON API its path belongs to (common/surface_refusals.ts), and in plain text anywhere else.

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

        the middleware