From 0854fb719d711ef02c33f1d23b1f4299cca9d8e9 Mon Sep 17 00:00:00 2001 From: cloud370 Date: Tue, 23 Sep 2025 09:11:01 +0800 Subject: [PATCH] feat: add most permissive CORS configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set origin to '*' to allow all origins - Set allowedHeaders to '*' to allow all headers - Add explicit methods configuration for all common HTTP methods - Enables full cross-origin access for development and integration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 203d4f4..d9fcf48 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,8 +16,10 @@ const server = fastify({ async function start() { try { await server.register(cors, { - origin: true, + origin: '*', credentials: true, + methods: ['GET', 'PUT', 'POST', 'DELETE', 'OPTIONS'], + allowedHeaders: ['*'], }); await server.register(scriptActions);