ln-773-cors-configurator

Solid

Configures CORS policy for development and production environments. Use when setting up cross-origin access for APIs.

AI & Automation 488 stars 70 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
90
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ln-773-cors-configurator **Type:** L3 Worker **Category:** 7XX Project Bootstrap Configures Cross-Origin Resource Sharing (CORS) policy with security-first approach. --- ## Overview | Aspect | Details | |--------|---------| | **Input** | Context Store from ln-770 | | **Output** | CORS configuration with environment-specific policies | | **Stacks** | .NET (ASP.NET Core CORS), Python (FastAPI CORSMiddleware) | --- ## Phase 1: Receive Context Accept Context Store from coordinator. **Required Context:** - `STACK`: .NET or Python - `PROJECT_ROOT`: Project directory path - `ENVIRONMENT`: Development or Production **Idempotency Check:** - .NET: Grep for `AddCors` or `UseCors` - Python: Grep for `CORSMiddleware` - If found: Return `{ "status": "skipped" }` --- ## Phase 2: Analyze Project Structure Determine frontend configuration. **Detection Steps:** 1. Check for frontend in same repository (`/frontend`, `/client`, `/web`) 2. Read `.env` or `appsettings.json` for CORS_ORIGINS 3. Identify common frontend ports (3000, 5173, 4200) **Detected Frontend Origins:** | Framework | Default Port | Origin | |-----------|--------------|--------| | React (CRA) | 3000 | http://localhost:3000 | | Vite | 5173 | http://localhost:5173 | | Angular | 4200 | http://localhost:4200 | | Next.js | 3000 | http://localhost:3000 | --- ## Phase 3: Decision Points ### Q1: Allowed Origins | Environment | Strategy | |-------------|----------| | **Development** | Allow localhost origins (config...

Details

Author
levnikolaevich
Repository
levnikolaevich/claude-code-skills
Created
7 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category