cors-configuration-validator

Validate Cloudflare Workers CORS headers, OPTIONS handling, and origin checks.

3|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/hirefrank/claude-plugins --skill cors-configuration-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cors-configuration-validator
Source: https://github.com/hirefrank/claude-plugins/tree/main/plugins/edge-stack/skills/cors-configuration-validator
Command: npx skills add https://github.com/hirefrank/claude-plugins --skill cors-configuration-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures proper CORS configuration, including allowed origins, methods, headers, and preflight handling for Cloudflare Workers.

Core Features & Use Cases

  • Header Validation: Confirms required CORS headers presence.
  • OPTIONS Handling: Validates preflight request flow.
  • Origin Validation: Checks safe origin allowance.

Quick Start

Validate a Worker that serves cross-origin requests and ensure secure, correct CORS setup.

Frequently Asked Questions about cors-configuration-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate CORS configuration for Cloudflare Workers?

CORS validation for Cloudflare Workers checks that your API endpoints correctly implement Access-Control headers, handle OPTIONS preflight requests, validate origins safely, and restrict methods and headers appropriately. This Skill automates that validation across development, staging, and production environments to catch misconfigurations before deployment.

What CORS headers does the validator check?

The validator confirms presence and correctness of Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers, and related CORS headers. It verifies these headers are set properly on responses to cross-origin requests and that preflight OPTIONS responses include the required headers.

How does preflight request handling work in CORS validation?

Preflight handling validates that your Worker correctly responds to OPTIONS requests with appropriate CORS headers before the browser sends the actual request. The validator confirms this flow works properly so cross-origin requests from browsers succeed without being blocked.

Can I use this validator to prevent overly permissive CORS policies?

Yes. The validator checks for overly permissive configurations like wildcard origins or unrestricted method/header allowance. It ensures your origin allowlist is secure and your allowed methods and headers are appropriately scoped to prevent unintended cross-origin access.

Does origin validation prevent security issues with cross-origin requests?

Origin validation in the validator checks that your Worker only allows requests from trusted origins rather than accepting all origins. This prevents malicious cross-origin requests and ensures only intended applications can access your API endpoints.