Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.48 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.48 KB

eazy-xss-wrapper

made-with-csharp License: MIT

Eazy xss wrapper help prevents cross-site scripting attacks in .netcore application.

Fuel my efforts with a cup of Coffee.

Buy Me A Coffee

Get Started

Installation (Not Yet)

- 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 the XssOptions in the app.settings.json.

appsettings
  "XssOptions": {
    "Enabled": true
  }

Contributing

Please do open issues if you spot any bugs, or would like to suggest new features/changes...