diff --git a/next.config.js b/next.config.js index d3b6713ec3..cfd341dcf2 100644 --- a/next.config.js +++ b/next.config.js @@ -8,11 +8,34 @@ const withBaseConfig = require("./config/next/config.base"); const withDevConfig = require("./config/next/config.dev"); const withProdConfig = require("./config/next/config.prod"); -module.exports = withPlugins([ - [withOptimizedImages, { handleImages: ["jpeg", "png", "webp", "gif"] }], - withTM, - withBaseConfig, - withServiceWorkerConfig, - [withDevConfig, {}, [PHASE_DEVELOPMENT_SERVER]], - [withProdConfig, {}, ["!" + PHASE_DEVELOPMENT_SERVER]], -]); +module.exports = withPlugins( + [ + [withOptimizedImages, { handleImages: ["jpeg", "png", "webp", "gif"] }], + withTM, + withBaseConfig, + withServiceWorkerConfig, + [withDevConfig, {}, [PHASE_DEVELOPMENT_SERVER]], + [withProdConfig, {}, ["!" + PHASE_DEVELOPMENT_SERVER]], + ], + { + async headers() { + return [ + { + source: "/(.*)", + headers: [ + { + key: "x-content-type-options", + value: "nosniff", + }, + { key: "x-xss-protection", value: "1" }, + { key: "x-frame-options", value: "DENY" }, + { + key: "strict-transport-security", + value: "max-age=31536000; includeSubDomains", + }, + ], + }, + ]; + }, + } +); diff --git a/src/@next/pages/CheckoutPage/CheckoutPage.tsx b/src/@next/pages/CheckoutPage/CheckoutPage.tsx index 06f96003e2..8ecb3e74be 100755 --- a/src/@next/pages/CheckoutPage/CheckoutPage.tsx +++ b/src/@next/pages/CheckoutPage/CheckoutPage.tsx @@ -161,6 +161,7 @@ const CheckoutPage: React.FC = () => { setPaymentGatewayErrors([]); handleStepSubmitSuccess(CheckoutStep.Review, { id: order?.id, + orderStatus: order?.status, orderNumber: order?.number, token: order?.token, }); @@ -236,6 +237,7 @@ const CheckoutPage: React.FC = () => { setPaymentGatewayErrors([]); handleStepSubmitSuccess(CheckoutStep.Review, { id: data?.order?.id, + orderStatus: data?.order?.status, orderNumber: data?.order?.number, token: data?.order?.token, });