CORS Lib
Add configurable CORS headers to Enonic XP controllers and filters.
CORS Lib
Add configurable CORS headers to Enonic XP controllers and filters.
lib-cors provides reusable CORS header handling for Enonic XP applications. It helps controllers and filters respond correctly to cross-origin requests, including preflight OPTIONS requests, while keeping CORS configuration centralized in the app config. Configure allowed origins, credentials, methods, allowed headers, exposed headers, and max-age without duplicating header logic across endpoints.
Releases
2.0.0
- Add support for Enonic XP 8
Compatibility:
- 8.0.0
1.0.0
- Initial release
Compatibility:
- 7.16.0