cors
OfficialSecure CORS for ColdBox REST APIs.
AuthorColdBox
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Configures and secures cross-origin requests for ColdBox REST APIs, preventing unauthorized front-end access while enabling legitimate front-end applications.
Core Features & Use Cases
- Configure allowOrigins, allowMethods, allowHeaders, and allowCredentials to control CORS behavior in production and development.
- Support for dynamic origin validation to allow specific origins based on environment or request context.
- Preflight OPTIONS handling and production hardening to ensure safe cross-origin interactions.
Quick Start
Configure your ColdBox app by updating config/modules/cors.cfc with the allowed origins, methods, headers, and credentials to enable secure cross-origin requests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cors Download link: https://github.com/ColdBox/skills/archive/main.zip#cors Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.