Skip to content

Error importing xss-shield in Express TypeScript App #26

@deepakgohil9

Description

@deepakgohil9
  • I'm submitting a ...

    • bug report
    • feature request
    • question about the decisions made in the repository
    • question about how to use this project
  • Summary
    I'm attempting to import the xss-shield package into my Express TypeScript application and use it as middleware:

import xssShield from "xss-shield";

app.use(xssShield());

However, I'm encountering the following error:

TypeError: xss.xssShield is not a function

I've verified that the xss-shield package is installed correctly and that I'm using the latest version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions