
cors-security-expert
Cors-expert agent for configuring cross-origin resource sharing with security best practices in Claude Code.
- version
- 1.0.0
- GitHub stars
- 79
What it does
- Adds the
cors-expertagent, a specialist for configuring cross-origin resource sharing rules - Covers CORS configuration and security best practices for cross-origin requests
- Designed for developers who need to set up or review cross-origin access in their applications
CORS configuration and security best practices expert
Add marketplace
/plugin marketplace add devsforge/marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install cors-security-expert@devsforge-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceCORS Security Expert
A comprehensive guide to Cross-Origin Resource Sharing (CORS) configuration, security best practices, and implementation patterns across different frameworks and languages.
Table of Contents
- Introduction
- CORS Fundamentals
- Access-Control Headers
- Preflight Requests
- Security Best Practices
- Framework Examples
- Common Vulnerabilities
- Testing CORS
- Troubleshooting
Introduction
CORS is a security mechanism that allows servers to specify which origins can access their resources. Understanding CORS is critical for building secure web applications that interact with APIs across different domains.
CORS Fundamentals
What is CORS?
CORS enables controlled access to resources located outside of a given domain. When a browser makes a cross-origin request, it includes an Origin header, and the server responds with appropriate Access-Control-* headers.
Same-Origin Policy
The Same-Origin Policy restricts how documents or scripts from one origin can interact with resources from another origin. Two URLs have the same origin if:
- Protocol matches (http vs https)
- Domain matches (example.com vs api.example.com)
- Port matches (80 vs 8080)
// Same origin examples
'https://example.com/app'
'https://example.com/api/users'
// Different origins
'http://example.com' // Different protocol
'https://api.example.com' // Different subdomain
'https://example.com:8080' // Different port
Access-Control Headers
Access-Control-Allow-Origin
Specifies which origins can access the resource.
// Allow single origin
res.setHeader('Access-Control-Allow-Origin', 'https://trusted-site.com');
// Allow all origins (NOT RECOMMENDED for production)
res.setHeader('Access-Control-Allow-Origin', '*');
// Dynamic origin (validate first!)
const allowedOrigins = ['https://site1.com', 'https://site2.com'];
const origin = req.headers.origin;
if (allowedOrigins.includes(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
}
Access-Control-Allow-Methods
Specifies allowed HTTP methods.
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
// More restrictive
res.setHeader('Access-Control-Allow-Methods', 'GET, POST');
Access-Control-Allow-Headers
Specifies allowed request headers.
res.setHeader(
'Access-Control-Allow-Headers',
'Content-Type, Authorization, X-Requested-With'
);
// Allow custom headers
res.setHeader(
'Access-Control-Allow-Headers',
'Content-Type, Authorization, X-API-Key, X-Custom-Header'
);
Access-Control-Allow-Credentials
Allows cookies and authentication headers.
// Enable credentials
res.setHeader('Access-Control-Allow-Credentials', 'true');
// IMPORTANT: Cannot use '*' for origin when credentials are enabled
// BAD:
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Credentials', 'true');
// GOOD:
res.setHeader('Access-Control-Allow-Origin', 'https://trusted-site.com');
res.setHeader('Access-Control-Allow-Credentials', 'true');
Access-Control-Max-Age
Specifies how long preflight results can be cached.
// Cache preflight for 1 hour (3600 seconds)
res.setHeader('Access-Control-Max-Age', '3600');
// Cache for 24 hours
res.setHeader('Access-Control-Max-Age', '86400');
Access-Control-Expose-Headers
Specifies which headers are accessible to the browser.
// Expose custom headers
res.setHeader('Access-Control-Expose-Headers', 'X-Total-Count, X-Page-Number');
// Multiple headers
res.setHeader(
'Access-Control-Expose-Headers',
'Content-Length, ETag, X-RateLimit-Limit, X-RateLimit-Remaining'
);
Preflight Requests
Preflight requests are OPTIONS requests sent by browsers before certain cross-origin requests to check if the actual request is safe to send.
When Preflight Occurs
Preflight is triggered for:
- Methods other than GET, HEAD, POST
- Custom headers beyond simple headers
- Content-Type other than application/x-www-form-urlencoded, multipart/form-data, or text/plain
Simple Request (No Preflight)
// Simple GET request - no preflight
fetch('https://api.example.com/data', {
method: 'GET',
headers: {
'Accept': 'application/json'
}
});
Preflight Request Example
// This triggers preflight due to custom header
fetch('https://api.example.com/data', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer token123'
},
body: JSON.stringify({ data: 'value' })
});
// Browser sends OPTIONS request first:
// OPTIONS /data HTTP/1.1
// Origin: https://frontend.com
// Access-Control-Request-Method: POST
// Access-Control-Request-Headers: authorization, content-type
Handling Preflight in Node.js
const http = require('http');
const server = http.createServer((req, res) => {
const allowedOrigin = 'https://trusted-site.com';
// Set CORS headers
res.setHeader('Access-Control-Allow-Origin', allowedOrigin);
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
res.setHeader('Access-Control-Max-Age', '86400');
// Handle preflight
if (req.method === 'OPTIONS') {
res.writeHead(204);
res.end();
return;
}
// Handle actual request
if (req.method === 'POST' && req.url === '/api/data') {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ message: 'Success' }));
}
});
server.listen(3000);
Security Best Practices
1. Validate Origins
Never use * in production for sensitive endpoints.
// SECURE: Whitelist specific origins
const allowedOrigins = [
'https://app.example.com',
'https://admin.example.com',
'https://mobile.example.com'
];
function validateOrigin(origin) {
return allowedOrigins.includes(origin);
}
function setCorsHeaders(req, res) {
const origin = req.headers.origin;
if (validateOrigin(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
res.setHeader('Access-Control-Allow-Credentials', 'true');
} else {
// Log suspicious request
console.warn(`Blocked CORS request from: ${origin}`);
}
}
2. Environment-Based Configuration
// config/cors.js
const corsConfig = {
development: {
origins: ['http://localhost:3000', 'http://localhost:8080'],
credentials: true
},
production: {
origins: [
'https://app.example.com',
'https://www.example.com'
],
credentials: true
}
};
const env = process.env.NODE_ENV || 'development';
module.exports = corsConfig[env];
3. Restrict Methods and Headers
// Only allow necessary methods
const allowedMethods = ['GET', 'POST'];
const allowedHeaders = ['Content-Type', 'Authorization'];
function corsMiddleware(req, res, next) {
const origin = req.headers.origin;
if (allowedOrigins.includes(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
res.setHeader('Access-Control-Allow-Methods', allowedMethods.join(', '));
res.setHeader('Access-Control-Allow-Headers', allowedHeaders.join(', '));
res.setHeader('Access-Control-Allow-Credentials', 'true');
}
if (req.method === 'OPTIONS') {
res.sendStatus(204);
} else {
next();
}
}
4. Use Vary Header
// Ensure caching works correctly with CORS
res.setHeader('Vary', 'Origin');
// If you also vary on other headers
res.setHeader('Vary', 'Origin, Accept-Encoding');
Framework Examples
Express.js
Manual Implementation
const express = require('express');
const app = express();
const allowedOrigins = ['https://app.example.com', 'https://www.example.com'];
app.use((req, res, next) => {
const origin = req.headers.origin;
if (allowedOrigins.includes(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
}
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
res.setHeader('Access-Control-Allow-Credentials', 'true');
res.setHeader('Access-Control-Max-Age', '86400');
res.setHeader('Vary', 'Origin');
if (req.method === 'OPTIONS') {
return res.sendStatus(204);
}
next();
});
app.get('/api/data', (req, res) => {
res.json({ message: 'CORS enabled' });
});
app.listen(3000);
Using cors Package
const express = require('express');
const cors = require('cors');
const app = express();
// Simple usage - Allow all origins (NOT RECOMMENDED)
app.use(cors());
// Recommended: Whitelist origins
const corsOptions = {
origin: function (origin, callback) {
const allowedOrigins = ['https://app.example.com', 'https://www.example.com'];
if (!origin || allowedOrigins.includes(origin)) {
callback(null, true);
} else {
callback(new Error('Not allowed by CORS'));
}
},
credentials: true,
methods: ['GET', 'POST', 'PUT', 'DELETE'],
allowedHeaders: ['Content-Type', 'Authorization'],
exposedHeaders: ['X-Total-Count'],
maxAge: 86400
};
app.use(cors(corsOptions));
// Route-specific CORS
app.get('/api/public', cors(), (req, res) => {
res.json({ data: 'Public data' });
});
app.get('/api/private', cors(corsOptions), (req, res) => {
res.json({ data: 'Private data' });
});
app.listen(3000);
NestJS
// main.ts
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// Enable CORS
app.enableCors({
origin: ['https://app.example.com', 'https://www.example.com'],
credentials: true,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization'],
exposedHeaders: ['X-Total-Count'],
maxAge: 3600,
});
await app.listen(3000);
}
bootstrap();
// Dynamic origin validation
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({
origin: (origin, callback) => {
const allowedOrigins = process.env.ALLOWED_ORIGINS?.split(',') || [];
if (!origin || allowedOrigins.includes(origin)) {
callback(null, true);
} else {
callback(new Error('Not allowed by CORS'));
}
},
credentials: true,
});
await app.listen(3000);
}
FastAPI (Python)
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
# Configure CORS
allowed_origins = [
"https://app.example.com",
"https://www.example.com",
]
app.add_middleware(
CORSMiddleware,
allow_origins=allowed_origins,
allow_credentials=True,
allow_methods=["GET", "POST", "PUT", "DELETE"],
allow_headers=["Content-Type", "Authorization"],
expose_headers=["X-Total-Count"],
max_age=3600,
)
@app.get("/api/data")
async def get_data():
return {"message": "CORS enabled"}
# Route-specific CORS
@app.get("/api/public")
async def public_data():
return {"data": "Public"}
# Dynamic origin validation
def validate_origin(origin: str) -> bool:
return origin in allowed_origins
app.add_middleware(
CORSMiddleware,
allow_origin_regex=r"https://.*\.example\.com",
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
Django
# settings.py
INSTALLED_APPS = [
'corsheaders',
# ...
]
MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
# ...
]
# Whitelist origins
CORS_ALLOWED_ORIGINS = [
"https://app.example.com",
"https://www.example.com",
]
# Or use regex
CORS_ALLOWED_ORIGIN_REGEXES = [
r"^https://\w+\.example\.com$",
]
# Allow credentials
CORS_ALLOW_CREDENTIALS = True
# Allowed methods
CORS_ALLOW_METHODS = [
'DELETE',
'GET',
'OPTIONS',
'PATCH',
'POST',
'PUT',
]
# Allowed headers
CORS_ALLOW_HEADERS = [
'accept',
'accept-encoding',
'authorization',
'content-type',
'origin',
]
# Expose headers
CORS_EXPOSE_HEADERS = [
'X-Total-Count',
]
# Preflight cache
CORS_PREFLIGHT_MAX_AGE = 86400
Go (Gin Framework)
package main
import (
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"time"
)
func main() {
r := gin.Default()
// CORS configuration
config := cors.Config{
AllowOrigins: []string{"https://app.example.com", "https://www.example.com"},
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
AllowHeaders: []string{"Content-Type", "Authorization"},
ExposeHeaders: []string{"X-Total-Count"},
AllowCredentials: true,
MaxAge: 12 * time.Hour,
}
r.Use(cors.New(config))
// Routes
r.GET("/api/data", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "CORS enabled",
})
})
r.Run(":3000")
}
// Custom CORS middleware
func customCORS() gin.HandlerFunc {
return func(c *gin.Context) {
origin := c.Request.Header.Get("Origin")
allowedOrigins := []string{"https://app.example.com", "https://www.example.com"}
allowed := false
for _, allowedOrigin := range allowedOrigins {
if origin == allowedOrigin {
allowed = true
break
}
}
if allowed {
c.Writer.Header().Set("Access-Control-Allow-Origin", origin)
c.Writer.Header().Set("Access-Control-Allow-Credentials", "true")
c.Writer.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS")
c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization")
c.Writer.Header().Set("Access-Control-Max-Age", "86400")
}
if c.Request.Method == "OPTIONS" {
c.AbortWithStatus(204)
return
}
c.Next()
}
}
Common Vulnerabilities
1. Wildcard Origin with Credentials
// VULNERABLE - Never do this!
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Credentials', 'true');
// Browsers will reject this combination
// If you need credentials, specify exact origin
2. Origin Reflection Without Validation
// VULNERABLE - Reflects any origin
app.use((req, res, next) => {
res.setHeader('Access-Control-Allow-Origin', req.headers.origin);
res.setHeader('Access-Control-Allow-Credentials', 'true');
next();
});
// SECURE - Validate before reflecting
const allowedOrigins = ['https://trusted.com'];
app.use((req, res, next) => {
const origin = req.headers.origin;
if (allowedOrigins.includes(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
res.setHeader('Access-Control-Allow-Credentials', 'true');
}
next();
});
3. Null Origin
// VULNERABLE - Null origin can be exploited
if (origin === 'null' || allowedOrigins.includes(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
}
// SECURE - Never allow null origin
if (origin && allowedOrigins.includes(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
}
4. Subdomain Wildcard Issues
// VULNERABLE - Regex too permissive
const originRegex = /^https:\/\/.*\.example\.com$/;
if (originRegex.test(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
}
// This allows: https://evil.example.com.attacker.com
// SECURE - Proper regex
const originRegex = /^https:\/\/[a-z0-9-]+\.example\.com$/;
if (originRegex.test(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
}
Testing CORS
Using curl
# Test preflight request
curl -X OPTIONS \
-H "Origin: https://app.example.com" \
-H "Access-Control-Request-Method: POST" \
-H "Access-Control-Request-Headers: Content-Type, Authorization" \
-v \
https://api.example.com/data
# Test actual request
curl -X POST \
-H "Origin: https://app.example.com" \
-H "Content-Type: application/json" \
-d '{"data":"value"}' \
-v \
https://api.example.com/data
Browser Testing
// Test CORS in browser console
fetch('https://api.example.com/data', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer token123'
},
credentials: 'include',
body: JSON.stringify({ data: 'value' })
})
.then(response => response.json())
.then(data => console.log('Success:', data))
.catch(error => console.error('CORS Error:', error));
Automated Testing
const request = require('supertest');
const app = require('./app');
describe('CORS Configuration', () => {
test('Should allow whitelisted origin', async () => {
const response = await request(app)
.get('/api/data')
.set('Origin', 'https://app.example.com');
expect(response.headers['access-control-allow-origin'])
.toBe('https://app.example.com');
});
test('Should reject non-whitelisted origin', async () => {
const response = await request(app)
.get('/api/data')
.set('Origin', 'https://evil.com');
expect(response.headers['access-control-allow-origin'])
.toBeUndefined();
});
test('Should handle preflight correctly', async () => {
const response = await request(app)
.options('/api/data')
.set('Origin', 'https://app.example.com')
.set('Access-Control-Request-Method', 'POST')
.set('Access-Control-Request-Headers', 'Content-Type');
expect(response.status).toBe(204);
expect(response.headers['access-control-allow-methods'])
.toContain('POST');
});
});
Troubleshooting
Common Error Messages
"No 'Access-Control-Allow-Origin' header is present"
// Problem: Origin not whitelisted or CORS not configured
// Solution: Add origin to whitelist
const allowedOrigins = ['https://yourapp.com'];
"The 'Access-Control-Allow-Origin' header contains multiple values"
// Problem: Setting header multiple times
// Bad:
app.use(corsMiddleware1);
app.use(corsMiddleware2); // Sets header again
// Solution: Use only one CORS middleware
app.use(corsMiddleware);
"Credentials flag is 'true', but origin is '*'"
// Problem: Cannot use wildcard with credentials
// Bad:
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Credentials', 'true');
// Solution: Specify exact origin
res.setHeader('Access-Control-Allow-Origin', 'https://app.example.com');
res.setHeader('Access-Control-Allow-Credentials', 'true');
Debugging Checklist
- Verify origin is in whitelist
- Check preflight response (OPTIONS)
- Ensure credentials configuration matches
- Verify all required headers are allowed
- Check for multiple CORS middleware
- Validate origin format (no trailing slash)
- Test with curl/Postman first
- Check browser console for specific errors
This comprehensive guide covers CORS implementation, security, and troubleshooting across multiple frameworks and languages.
From the devsforge/marketplace README
Disclaimer: DevsForge Marketplace is an independent, community-developed open-source project. It is not affiliated with, endorsed by, or officially associated with Anthropic, PBC or any of its products (including Claude, Claude Code, or the Claude API). "Claude" and "Anthropic" are trademarks of Anthropic, PBC. This project is a third-party plugin built by the community to extend Claude Code functionality.
๐ DevsForge Marketplace
The Ultimate Plugin Ecosystem for Claude Code
161 Enterprise-Grade Plugins | 93 AI Agents | 65 Commands | 3 Super Plugins
Get Started โข Browse Plugins โข Documentation โข Contributing
โก What's New in v1.2
โ Plugin Compliance & QualityAll 161 plugins validated for Claude Code CLI Fixes Applied:
|
๐๏ธ Super Plugins (Advanced)Multi-component platforms with hooks & MCP servers Features:
|
โจ Why DevsForge Marketplace?
๐จCurated QualityEvery plugin manually reviewed & enterprise-tested |
โกProduction ReadyBattle-tested in real-world scenarios |
๐Security FirstZero dependencies, fully audited code |
๐Advanced FeaturesHooks, MCP servers, automation |
๐ฏ100% OriginalNo copycat plugins, pure innovation |
๐ฏ Quick Start
Installation
# ๐ฅ One command to rule them all
/plugin marketplace add https://github.com/devsforge/marketplace.git
# โ
Verify installation
/plugin marketplace list
# ๐ Expected: devsforge-marketplace (1.2.0) - 161 plugins available
Using Plugins
# ๐ Browse available plugins
/plugin
# ๐ฆ Install specific plugin
/plugin install ai-architect@devsforge-marketplace
# ๐ Install super plugin (with hooks & MCP)
/plugin install enterprise-workspace@devsforge-marketplace
# ๐ Manage plugins
/plugin list # List installed
/plugin update ai-architect@devsforge-marketplace # Update plugin
/plugin remove debugger@devsforge-marketplace # Remove plugin
๐จ Featured Categories
๐ค AI & Machine Learning (12 plugins)
- ai-architect - ML optimization & AI system design
- ai-ethics-officer - Ethical AI governance
- vision-specialist - Computer vision & image processing
- data-scientist - Data analysis & BigQuery operations
- data-analyst - Analytics & business intelligence
๐ Security & Compliance (15 plugins)
- enterprise-security-reviewer - B2B security assessments
- security-scanner - Vulnerability detection & remediation
- authentication-specialist - JWT, OAuth2, security patterns
- cors-security-expert - CORS configuration & best practices
- data-privacy-engineer - GDPR compliance & data protection
- compliance-automation-specialist - Regulatory automation
- legal-compliance-checker - Legal compliance validation
๐ป Development & Code Quality (25 plugins)
- code-quality-expert - Code governance & security
- code-migrator - Legacy code modernization
- debugger - Advanced debugging methodologies
- web-dev - React, Next.js, NestJS, TypeScript
- python-expert - Advanced Python development
- database-expert โก NEW - SQL optimization & query tuning
- docker-specialist โก NEW - Container optimization
- git-workflow-expert โก NEW - Advanced Git strategies
- rest-api-designer โก NEW - REST API best practices
- graphql-specialist โก NEW - GraphQL schema design
๐ง DevOps & Infrastructure (18 plugins)
- devops-automator - CI/CD & infrastructure automation
- deployment-engineer - Production deployment strategies
- cloud-architect - Multi-cloud architecture
- monitoring-observability-specialist - System monitoring
- sre-reliability-engineer - Site reliability engineering
- cost-optimizer - Cloud cost optimization
๐งช Testing & QA (10 plugins)
- testing-orchestrator - Test automation frameworks
- unit-test-generator - Automated test generation
- api-quality-assurance - API testing & validation
- performance-benchmarker - Performance testing
- test-writer-fixer - Test creation & maintenance
๐ Documentation & Knowledge (8 plugins)
- codebase-documenter - Comprehensive code documentation
- technical-writer-pro - Technical documentation
- api-docs-generator - OpenAPI/Swagger docs
- doc-generator - Auto-documentation generation
๐จ Design & UX (8 plugins)
- ui-designer - Beautiful, functional interfaces
- ui-ux-engineer - React/Vue/Angular components
- accessibility-architect - WCAG 2.1 AA compliance
- mobile-ux-optimizer - Mobile-first experiences
- ux-researcher - User research & journey maps
๐ Data & Analytics (7 plugins)
- data-analyst - Analytics methodologies
- data-scientist - SQL queries & data insights
- database-performance-optimizer - Database optimization
- sql-query-optimizer - Advanced SQL optimization
๐ข Enterprise & Business (12 plugins)
- software-architect - Scalable architecture design
- system-architect - Backend design & integration
- b2b-project-shipper - B2B project delivery
- customer-success-manager - Customer success ops
- technical-sales-engineer - Technical sales support
- pricing-packaging-specialist - Pricing strategies
๐ Productivity & Automation (15 plugins)
- workflow-optimizer - Workflow optimization
- project-shipper - Launch & release management
- sprint-prioritizer - Sprint planning & prioritization
- experiment-tracker - Experiment tracking & analysis
- finance-tracker - Budget & cost management
โก Super Plugins - Advanced (3 plugins)
๐ข enterprise-workspace
Complete workspace management platform with hooks & MCP
Components:
- 3 Commands:
workspace-init,workspace-sync,workspace-audit - 2 Agents: workspace-architect, compliance-auditor
- 1 Hook: PostToolUse validation
- 1 MCP Server: workspace-state
- 1 Script: validate-workspace.sh
Features:
- โ Architecture governance
- โ Compliance tracking
- โ Automated validation
- โ State management
๐ค ai-studio-orchestrator
Advanced multi-agent coordination platform
Components:
- 3 Commands:
orchestrate-task,monitor-performance,optimize-workflow - 2 Agents: task-coordinator, performance-analyzer
- 1 Hook: PreToolUse logging
- 1 MCP Server: orchestrator
- 1 Script: task-logger.sh
Features:
- โ Task distribution
- โ Load balancing
- โ Performance analytics
- โ Real-time monitoring
๐ง devops-platform
Complete DevOps automation platform
Components:
- 3 Commands:
setup-pipeline,deploy-application,manage-infrastructure - 2 Agents: cicd-architect, infrastructure-engineer
- 1 Hook: PostToolUse config validation
- 1 MCP Server: devops-state
- 1 Script: validate-devops-config.sh
Features:
- โ CI/CD pipelines (GitHub Actions, Jenkins, GitLab CI)
- โ Zero-downtime deployments
- โ Infrastructure as Code (Terraform, CloudFormation)
- โ Security scanning
๐ Marketplace Statistics
| Category | Count | Description |
|---|---|---|
| ๐ค Agents | 93 | AI-powered development assistants |
| โก Commands | 65 | Instant productivity tools |
| ๐ Super Plugins | 3 | Advanced multi-component platforms |
| Total | 161 | Production-ready plugins |
Quality Metrics
- โ Average Documentation: 250+ lines per plugin
- โ Code Examples: Real-world templates included
- โ Testing: Enterprise-grade validation
- โ Security: Zero external dependencies
- โ Maintenance: Regular updates & improvements
๐๏ธ Architecture
devsforge-marketplace/
โโโ .claude-plugin/
โ โโโ marketplace.json # ๐ Marketplace registry (161 plugins)
โ
โโโ plugins/
โ โโโ agents/ # ๐ค 93 AI Agent Plugins
โ โ โโโ ai-architect/
โ โ โ โโโ .claude-plugin/
โ โ โ โ โโโ plugin.json
โ โ โ โโโ agents/
โ โ โ โโโ ai-engineer.md
โ โ โโโ database-expert/ โก NEW in v1.1
โ โ โโโ docker-specialist/ โก NEW in v1.1
โ โ โโโ git-workflow-expert/ โก NEW in v1.1
โ โ โโโ ... (90 more agents)
โ โ
โ โโโ commands/ # โก 65 Command Plugins
โ โ โโโ api-designer/
โ โ โ โโโ .claude-plugin/
โ โ โ โ โโโ plugin.json
โ โ โ โโโ commands/
โ โ โ โโโ api-designer.md
โ โ โโโ env-validator/ โก NEW in v1.1
โ โ โโโ import-organizer/ โก NEW in v1.1
โ โ โโโ ... (62 more commands)
โ โ
โ โโโ super/ # ๐ 3 Super Plugins
โ โโโ enterprise-workspace/
โ โ โโโ .claude-plugin/
โ โ โ โโโ plugin.json # With hooks & MCP
โ โ โโโ commands/ # Multiple commands
โ โ โโโ agents/ # Multiple agents
โ โ โโโ scripts/ # Automation scripts
โ โ โโโ servers/ # MCP servers
โ โโโ ai-studio-orchestrator/
โ โโโ devops-platform/
โ
โโโ README.md # ๐ This file
๐ Documentation
Plugin Installation Examples
# ๐ค AI & Machine Learning
/plugin install ai-architect@devsforge-marketplace
/plugin install data-scientist@devsforge-marketplace
/plugin install vision-specialist@devsforge-marketplace
# ๐ป Development Tools
/plugin install web-dev@devsforge-marketplace
/plugin install python-expert@devsforge-marketplace
/plugin install debugger@devsforge-marketplace
# ๐ Security & Compliance
/plugin install security-scanner@devsforge-marketplace
/plugin install authentication-specialist@devsforge-marketplace
/plugin install cors-security-expert@devsforge-marketplace
# ๐ง DevOps & Infrastructure
/plugin install devops-automator@devsforge-marketplace
/plugin install docker-specialist@devsforge-marketplace
/plugin install cloud-architect@devsforge-marketplace
# โก Productivity Commands
/plugin install code-review@devsforge-marketplace
/plugin install fix-github-issue@devsforge-marketplace
/plugin install pr-creator@devsforge-marketplace
# ๐ Super Plugins (Advanced)
/plugin install enterprise-workspace@devsforge-marketplace
/plugin install ai-studio-orchestrator@devsforge-marketplace
/plugin install devops-platform@devsforge-marketplace
Marketplace Management
# ๐ List installed marketplaces
/plugin marketplace list
# ๐ Update marketplace
/plugin marketplace update devsforge-marketplace
# ๐๏ธ Remove marketplace
/plugin marketplace remove devsforge-marketplace
# ๐ Search plugins
/plugin search "security"
/plugin search "api design"
# ๐ Show plugin details
/plugin info ai-architect@devsforge-marketplace
๐ ๏ธ Troubleshooting
โ Marketplace Not Loading
Symptoms: Marketplace doesn't appear in /plugin marketplace list
Solutions:
- โ
Verify
.claude-plugin/marketplace.jsonexists in repository root - โ
Check JSON syntax:
claude plugin validate . - โ Ensure Git repository is accessible and cloned correctly
- โ Restart Claude Code CLI after adding marketplace
โ Plugin Installation Failures
Symptoms: Error message "Plugin not found" or installation timeout
Solutions:
- โ
Verify plugin source paths are correct:
./plugins/[type]/[name] - โ
Ensure all required files exist:
.claude-plugin/plugin.json,commands/*.mdoragents/*.md - โ Check network connectivity for Git-based plugin sources
- โ
Try explicit version:
/plugin install [name]@devsforge-marketplace@1.0.0
โ Super Plugin Issues
Symptoms: Hooks not triggering or MCP server connection errors
Solutions:
- โ
Verify
${CLAUDE_PLUGIN_ROOT}environment variable resolves correctly - โ
Check script permissions:
chmod +xon Linux/Mac - โ Ensure Node.js is installed for MCP server JavaScript files
- โ Review Claude Code logs for hook execution errors
โ Performance Issues
Symptoms: Slow marketplace loading or plugin installation
Solutions:
- โ Check internet connection speed (GitHub clone performance)
- โ Verify available disk space (minimum 50MB required)
- โ Close unnecessary applications to free system resources
- โ Use local path installation for faster access after initial clone
๐ค Contributing
We welcome contributions! Here's how you can help:
๐ฏ Contributing New Plugins
- ๐ด Fork the repository
- ๐ Create plugin structure in appropriate directory (
agents/,commands/, orsuper/) - ๐ Follow
plugin.jsonschema requirements - ๐ Add comprehensive documentation (200-700+ lines recommended)
- ๐งช Test thoroughly with Claude Code CLI
- ๐ Submit pull request with detailed description
๐ Plugin Quality Standards
- โ Minimum 200 lines of documentation
- โ Real-world code examples and templates
- โ Phase-based methodologies
- โ Best practices and anti-patterns
- โ Quality metrics and KPIs
- โ Business impact analysis
๐ก Contributing Ideas
- ๐ฌ Open a GitHub Discussion with plugin proposal
- ๐ Describe use case and business value
- ๐ป Provide examples of desired functionality
- ๐ณ๏ธ Community votes on most valuable additions
๐ Security & Trust
โ ๏ธ Important Disclaimer
DevsForge Marketplace is an independent, community-driven project
- โ NOT affiliated with Anthropic or Claude
- โ NOT officially endorsed or connected to Anthropic
- โ Community maintained by open-source contributors
- โ ๏ธ Use at your own risk - review plugin code before production use
Security Measures
|
Our Practices:
|
Your Responsibilities:
|
๐ License
MIT License - See LICENSE for details
Copyright (c) 2025 DevsForge Community
๐ Acknowledgments
Built with โค๏ธ by the DevsForge Community
Special thanks to:
- ๐จ Anthropic for Claude Code CLI platform
- ๐ป All plugin contributors and testers
- ๐ข Enterprise users providing valuable feedback
- ๐ Open source community for inspiration
๐ Ready to supercharge your Claude Code experience?
Get Started Now โข Browse Plugins โข Contribute
DevsForge Marketplace v1.2 - The Ultimate Plugin Ecosystem for Claude Code
Details
- Marketplace
- devsforge/marketplace
- Source
- plugins/agents/cors-security-expert
- Author
- DevsForge Community
- Category
- Agents
- Keywords
- devsforge, agent, cors, security
- Listed since
- Apr 7, 2026
More from devsforge/marketplace
All 161- cost-optimizerv1.0.0
- create-worktreesv1.0.0
- customer-success-managerv1.0.0
- data-analystv1.0.0
- data-privacy-engineerv1.0.0
- data-scientistv1.0.0
- database-expertv1.0.0
- database-performance-optimizerv1.0.0
- debug-detectivev1.0.0
- debug-sessionv1.0.0
- debuggerv1.0.0
- decision-facilitatorv1.0.0
- dependency-managerv1.0.0
- deployment-engineerv1.0.0
- desktop-app-devv1.0.0
- desktop-integratorv1.0.0
- devops-automatorv1.0.0
- devops-platformv1.0.0
- doc-generatorv1.0.0
- docker-compose-generatorv1.0.0
- docker-specialistv1.0.0
- enterprise-integrator-architectv1.0.0
- enterprise-onboarding-specialistv1.0.0
- enterprise-security-reviewerv1.0.0
Similar to cors-security-expert
More Backend & APIs
form-validation-expertPlugindevsforge/marketplace79 starsInput validation, sanitization, and security expert
authentication-specialistPlugindevsforge/marketplace79 starsJWT, OAuth2, and authentication security expert
security-expertPluginshipshitdev/library39 starsExpert in application security, OWASP Top 10, authentication, authorization, data protection, and se
backend-security-coderSkillsickn33/agentic-awesome-skills852 installsExpert backend security coder for input validation, authentication, API hardening, and secure error handling.
platform-engineeringPluginTheBushidoCollective/han201 starsPlatform engineering agents providing expertise in developer platforms, IaC, and tooling