Eazy xss wrapper help prevents cross-site scripting attacks in .netcore application.
- Install-Package eazy-xss-wrapper
Add UseEazyXssWrapper()
to aspnet core middleware pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseEazyXssWrapper(Configuration); // Note: before UseRouting()
app.UseRouting();
}
Once you have configured the
UseEazyXssWrapper()
in Configure method of the Startup.cs file, you're ready to define theXssOptions
in theapp.settings.json
.
"XssOptions": {
"Enabled": true
}
Please do open issues if you spot any bugs, or would like to suggest new features/changes...