Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing xss-shield in Express TypeScript App #26

Open
1 of 4 tasks
deepakgohil9 opened this issue Sep 6, 2024 · 0 comments
Open
1 of 4 tasks

Error importing xss-shield in Express TypeScript App #26

deepakgohil9 opened this issue Sep 6, 2024 · 0 comments

Comments

@deepakgohil9
Copy link

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant