Skip to content

v1.7.18: Add CORS origin function support in config and fix MiddlewareInterface warning

Choose a tag to compare

@M-Chris M-Chris released this 25 Jan 06:44
· 32 commits to main since this release

fix: Add CORS origin function support in config and fix MiddlewareInterface warning

  • Added OriginFunction type support in config validator
  • Updated SecurityConfig.cors.origin to accept functions
  • Fixed CORS middleware export to use standard middleware (matching helmet/compression)
  • Changed CORS middleware signature from StandardMiddleware to Middleware
  • Exported OriginFunction type from main index
  • zero breaking changes