diff --git a/services/arbiter-3.0/src/index.js b/services/arbiter-3.0/src/index.js index 49f5dc7..e0c1b43 100644 --- a/services/arbiter-3.0/src/index.js +++ b/services/arbiter-3.0/src/index.js @@ -48,9 +48,10 @@ app.use(express.urlencoded({ extended: true })); // CORS configuration - Allow Stripe checkout requests from website app.use('/stripe/create-checkout-session', cors({ - origin: 'https://firefrostgaming.com', - methods: ['POST'], - credentials: false + origin: ['https://firefrostgaming.com', 'https://www.firefrostgaming.com'], + methods: ['POST', 'OPTIONS'], + credentials: false, + optionsSuccessStatus: 200 })); // Make Discord client accessible to routes