diff --git a/server/src/app.js b/server/src/app.js index d42b9419..c9360363 100644 --- a/server/src/app.js +++ b/server/src/app.js @@ -14,6 +14,8 @@ const corsOptions = { }; app.use(cors(corsOptions)); +app.options('*', cors(corsOptions)); // handle preflight requests for all routes + app.use('/payment/stripe-callback', bodyParser.raw({ type: '*/*' })); app.use(bodyParser.json());