secure-web-requests

Installation
SKILL.md

Securing Web Requests

ABP's web-request security has two separate paths: MVC antiforgery services/filters validate state-changing browser requests, while AbpSecurityHeadersMiddleware adds response headers and optional Content Security Policy (CSP). Configure and validate both independently.

When to Use

  • Configure CSRF token cookie generation and MVC automatic validation.
  • Issue an antiforgery token cookie for a JavaScript or Blazor client.
  • Wire antiforgery middleware in a Blazor host.
  • Add baseline browser security headers, custom headers, CSP, or script nonces.
  • Exclude a known endpoint/path from ABP security-header processing after reviewing the risk.

When Not to Use

  • OpenIddict/API authentication — use configure-openiddict-authentication.
  • Permissions, policies, and resource authorization — use permissions-and-authorization.
  • Build MVC/Razor UI pages — use mvc-razor-ui.
  • Build Blazor components — use blazor-ui.
Installs
20
GitHub Stars
32
First Seen
Sep 5, 2026