From eaa5e036fc61d2d81a347aa328b8dedf8dcc94ec Mon Sep 17 00:00:00 2001 From: Razvan Giurgiu Date: Wed, 5 Jun 2024 13:29:09 +0300 Subject: [PATCH] allow headers --- lib/invocation-handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/invocation-handler.js b/lib/invocation-handler.js index 2da8886..f3b25ee 100644 --- a/lib/invocation-handler.js +++ b/lib/invocation-handler.js @@ -22,6 +22,7 @@ module.exports = function use(fastify, opts, done) { 'content-type': 'application/json; charset=utf-8', 'access-control-allow-methods': 'OPTIONS, GET, POST', 'access-control-allow-origin': '*', + 'access-control-allow-headers': '*' }).send(); } done();