github Baroshem/nuxt-security v2.2.0

latest releases: v2.5.1, v2.5.0, v2.4.0...
13 months ago

This version introduces a new feature to the rate limiter middleware by adding a whitelist option, along with several related changes to the codebase and documentation.

New Feature: Whitelist Option for Rate Limiter

  • Rate Limiter Configuration:

    • Added a whiteList property to the RateLimiter type, allowing specific IP addresses to bypass rate limiting. (docs/content/3.middleware/1.rate-limiter.md, src/types/middlewares.ts, src/defaultConfig.ts) [1] [2] [3]
    • Updated documentation to include details about the new whiteList property. (docs/content/3.middleware/1.rate-limiter.md)
  • Security Configuration:

    • Fixed an issue where securityConfig was not correctly initialized in the basic authentication middleware. (src/runtime/server/middleware/basicAuth.ts)
  • Nonce Handling:

    • Improved the handling of nonces in CSP headers by ensuring existing nonces are replaced instead of duplicated. (src/runtime/nitro/plugins/40-cspSsrNonce.ts) [1] [2]

What's Changed

New Contributors

Full Changelog: v2.1.5...v2.2.0

Don't miss a new nuxt-security release

NewReleases is sending notifications on new releases.