Add more cors rules
@@ -51,8 +51,11 @@ exports.graphqlHandler = async (event: any, context: any) => {
cors: {
credentials: true,
methods: ["GET", "POST", "OPTIONS", "HEAD"],
+ origin: [
// @ts-ignore
- origin: [/python-italia\.vercel\.app$/],
+ /python-italia\.vercel\.app$/,
+ "pycon.it",
+ ],
},
});
