default: {
xssShield: ((options?: SanitizeOptions) => ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void));
}
Type declaration
-
xssShield: ((options?: SanitizeOptions) => ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void))
-
- (options?: SanitizeOptions): ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void)
-
Parameters
-
Optional
options: SanitizeOptions
Returns ((req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction) => void)
-
- (req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _res: Response<any, Record<string, any>>, next: NextFunction): void
-
Parameters
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
_res: Response<any, Record<string, any>>
-
next: NextFunction
Returns void
Sanitizes user input from potential cross-site scripting (XSS) attacks.