From da9f542e229a7865898100610f33b48992aadb5f Mon Sep 17 00:00:00 2001 From: Christine Coenen Date: Tue, 9 Jul 2024 16:10:26 +0200 Subject: [PATCH] Send CORS headers --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 108550d..9eb64e0 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,10 @@ const app = express(); app.use((_, res, next) => { res.setHeader("Version", version); + + res.header("Access-Control-Allow-Origin", "*"); + res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); + next(); });