Repository navigation
Release 0.5.4
π§ Security Middleware Improvements
What's Changed
π Middleware Consolidation
- Removed duplicate security middleware from auth router to prevent conflicts
- Centralized security headers management in dedicated middleware module
- Cleaned up module exports by removing redundant SecurityHeadersMiddleware from API exports
π Documentation Support
- Path-specific CSP policies that adapt based on request endpoints
- Enhanced documentation access with relaxed CSP for
/docsand/redocendpoints - CDN resource support for Swagger UI and ReDoc functionality from
cdn.jsdelivr.net - Maintained security for all other endpoints with strict default policies
Technical Improvements
- Consolidated duplicate middleware implementations
- Added intelligent CSP policy selection based on request path
- Improved documentation endpoint functionality without compromising overall security
- Better separation of concerns between auth logic and security headers
Breaking Changes
None - this is a refactoring release that maintains all existing functionality.
For Developers
The /docs and /redoc endpoints now properly load external resources needed for the interactive API documentation while maintaining strict security policies for all authentication and OAuth endpoints.