From c90f11f32b8be795dddec8980ec31aa0f22437cd Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Fri, 4 Jul 2025 04:47:14 +0100 Subject: modify Response to set CORS headers to allow all methods and headers --- source/main.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'source') diff --git a/source/main.js b/source/main.js index d78aac9..c5b6d5c 100644 --- a/source/main.js +++ b/source/main.js @@ -19,14 +19,8 @@ export default { constructor(body, init) { super(body, init); this.headers.set("Access-Control-Allow-Origin", "*"); - this.headers.set( - "Access-Control-Allow-Methods", - "GET, POST, PUT, DELETE" - ); - this.headers.set( - "Access-Control-Allow-Headers", - "Content-Type, Authorization" - ); + this.headers.set("Access-Control-Allow-Methods", "*"); + this.headers.set("Access-Control-Allow-Headers", "*"); } } -- cgit v1.2.3