From 9ea66888e65ec77e8d87982c3c16918efd2f0441 Mon Sep 17 00:00:00 2001 From: Trevor Blades Date: Thu, 6 Feb 2020 13:18:53 -0800 Subject: [PATCH] Add cors --- functions/graphql.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/graphql.js b/functions/graphql.js index 76de5d9..7358c7f 100644 --- a/functions/graphql.js +++ b/functions/graphql.js @@ -136,4 +136,8 @@ const server = new ApolloServer({ } }); -exports.handler = server.createHandler(); +exports.handler = server.createHandler({ + cors: { + origin: '*' + } +});