New advertisers: 50% off your first month with code FIRSTMONTHSee slots
devsforge avatar

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-expert agent, 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/marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install cors-security-expert@devsforge-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

CORS 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 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

  1. Verify origin is in whitelist
  2. Check preflight response (OPTIONS)
  3. Ensure credentials configuration matches
  4. Verify all required headers are allowed
  5. Check for multiple CORS middleware
  6. Validate origin format (no trailing slash)
  7. Test with curl/Postman first
  8. 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

Version Plugins License Claude Code Stars

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 & Quality

All 161 plugins validated for Claude Code CLI

Fixes Applied:

  • ๐Ÿ”ง Removed invalid commands field from 65 command plugins
  • โœ… All plugin.json files validated
  • ๐Ÿ“ Auto-discovery pattern for commands
  • ๐Ÿ—๏ธ Super plugins structure retained

๐Ÿ—๏ธ Super Plugins (Advanced)

Multi-component platforms with hooks & MCP servers

Features:

  • ๐Ÿค– AI Agent orchestration
  • ๐Ÿข Enterprise workspace management
  • ๐Ÿ”ง Complete DevOps automation
  • ๐Ÿ“Š Real-time state tracking
  • โœจ Event-driven workflows

โœจ Why DevsForge Marketplace?


๐ŸŽจ

Curated Quality

Every plugin manually reviewed & enterprise-tested


โšก

Production Ready

Battle-tested in real-world scenarios


๐Ÿ”’

Security First

Zero dependencies, fully audited code


๐Ÿš€

Advanced Features

Hooks, MCP servers, automation


๐Ÿ’ฏ

100% Original

No 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

CategoryCountDescription
๐Ÿค– Agents93AI-powered development assistants
โšก Commands65Instant productivity tools
๐Ÿš€ Super Plugins3Advanced multi-component platforms
Total161Production-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:

  1. โœ… Verify .claude-plugin/marketplace.json exists in repository root
  2. โœ… Check JSON syntax: claude plugin validate .
  3. โœ… Ensure Git repository is accessible and cloned correctly
  4. โœ… Restart Claude Code CLI after adding marketplace
โŒ Plugin Installation Failures

Symptoms: Error message "Plugin not found" or installation timeout

Solutions:

  1. โœ… Verify plugin source paths are correct: ./plugins/[type]/[name]
  2. โœ… Ensure all required files exist: .claude-plugin/plugin.json, commands/*.md or agents/*.md
  3. โœ… Check network connectivity for Git-based plugin sources
  4. โœ… Try explicit version: /plugin install [name]@devsforge-marketplace@1.0.0
โŒ Super Plugin Issues

Symptoms: Hooks not triggering or MCP server connection errors

Solutions:

  1. โœ… Verify ${CLAUDE_PLUGIN_ROOT} environment variable resolves correctly
  2. โœ… Check script permissions: chmod +x on Linux/Mac
  3. โœ… Ensure Node.js is installed for MCP server JavaScript files
  4. โœ… Review Claude Code logs for hook execution errors
โŒ Performance Issues

Symptoms: Slow marketplace loading or plugin installation

Solutions:

  1. โœ… Check internet connection speed (GitHub clone performance)
  2. โœ… Verify available disk space (minimum 50MB required)
  3. โœ… Close unnecessary applications to free system resources
  4. โœ… Use local path installation for faster access after initial clone

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

๐ŸŽฏ Contributing New Plugins

  1. ๐Ÿด Fork the repository
  2. ๐Ÿ“ Create plugin structure in appropriate directory (agents/, commands/, or super/)
  3. ๐Ÿ“ Follow plugin.json schema requirements
  4. ๐Ÿ“– Add comprehensive documentation (200-700+ lines recommended)
  5. ๐Ÿงช Test thoroughly with Claude Code CLI
  6. ๐Ÿš€ 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:

  • โœ… Security vulnerability scanning
  • โœ… Static code analysis
  • โœ… Zero third-party dependencies
  • โœ… Open source transparency
  • โœ… Community moderation
  • โœ… Regular security audits

Your Responsibilities:

  • ๐Ÿ” Review plugin source code
  • ๐Ÿงช Test in development first
  • ๐Ÿ› Report security issues on GitHub
  • ๐Ÿ”„ Keep plugins updated
  • ๐Ÿ”’ Follow least privilege principle
  • ๐Ÿ“– Read documentation carefully

๐Ÿ“œ 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

Made with Love Community Driven Production Ready

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

Similar to cors-security-expert

More Backend & APIs