edge-function-cors-hardener

Community

Tighten CORS in Edge Functions

Authorsanchezx1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Implementa CORS restrictivo en Edge Functions de Supabase para evitar orígenes no permitidos y aumentar la seguridad.

Core Features & Use Cases

  • Shared allowed origins: Crear módulo en supabase/functions/_shared/cors.ts con orígenes permitidos.
  • Edge Functions updates: Actualizar funciones para usar los encabezados CORS centralizados.
  • Deployment: Desplegar con mcp_supabase y configurar ALLOWED_ORIGIN en el entorno.

Quick Start

Crear el módulo CORS compartido, actualizar las Edge Functions (generate-pdf, send-email, upsert-lead) para usar el módulo, configurar ALLOWED_ORIGIN y desplegar para probar desde el frontend.

Dependency Matrix

Required Modules

None required

Components

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: edge-function-cors-hardener
Download link: https://github.com/sanchezx1/v0-fullcolor-cotizador/archive/main.zip#edge-function-cors-hardener

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.