From 8ba23c6a287d64d582fa25338a84902ecc369cc9 Mon Sep 17 00:00:00 2001 From: Archeb Date: Sat, 18 May 2024 18:28:45 +0800 Subject: [PATCH] fix acao --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e0cad95..424d201 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,7 @@ app.post("/v1/messages", apiKeyAuth, (req, res) => { req.on("end", async () => { res.setHeader("Content-Type", "text/event-stream;charset=utf-8"); - res.setHeader("Allow-Control-Allow-Origin", "*"); + res.setHeader("Access-Control-Allow-Origin", "*"); try { let jsonBody = JSON.parse(req.rawBody); if (jsonBody.stream == false) {