diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index ef21974e92..7bd6e133b0 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -395,6 +395,11 @@ const nextConfig = {
value: "cross-origin",
};
+ const ACCESS_CONTROL_ALLOW_ORIGIN_HEADER = {
+ key: "Access-Control-Allow-Origin",
+ value: "*",
+ };
+
return [
{
source: "/auth/:path*",
@@ -464,7 +469,7 @@ const nextConfig = {
},
{
source: "/icons/sprite.svg",
- headers: [CORP_CROSS_ORIGIN_HEADER],
+ headers: [CORP_CROSS_ORIGIN_HEADER, ACCESS_CONTROL_ALLOW_ORIGIN_HEADER],
},
],
...(isOrganizationsEnabled
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index 328e6b18a3..4ea9d6c659 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -2905,5 +2905,6 @@
"routing_form": "Routing Form",
"something_unexpected_occurred": "Something unexpected occurred",
"500_error_message": "It's not you, it's us.",
+ "dry_run_mode_active": "You are doing a test booking.",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
}
diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx
index 523ca891ab..4cd6355e6e 100644
--- a/packages/features/bookings/Booker/Booker.tsx
+++ b/packages/features/bookings/Booker/Booker.tsx
@@ -11,13 +11,14 @@ import dayjs from "@calcom/dayjs";
import { getQueryParam } from "@calcom/features/bookings/Booker/utils/query-param";
import { useNonEmptyScheduleDays } from "@calcom/features/schedules";
import classNames from "@calcom/lib/classNames";
-import { useLocale } from "@calcom/lib/hooks/useLocale";
+import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import { BookerLayouts } from "@calcom/prisma/zod-utils";
import { VerifyCodeDialog } from "../components/VerifyCodeDialog";
import { AvailableTimeSlots } from "./components/AvailableTimeSlots";
import { BookEventForm } from "./components/BookEventForm";
import { BookFormAsModal } from "./components/BookEventForm/BookFormAsModal";
+import { DryRunMessage } from "./components/DryRunMessage";
import { EventMeta } from "./components/EventMeta";
import { HavingTroubleFindingTime } from "./components/HavingTroubleFindingTime";
import { Header } from "./components/Header";
@@ -30,6 +31,7 @@ import { NotFound } from "./components/Unavailable";
import { fadeInLeft, getBookerSizeClassNames, useBookerResizeAnimation } from "./config";
import { useBookerStore } from "./store";
import type { BookerProps, WrappedBookerProps } from "./types";
+import { isBookingDryRun } from "./utils/isBookingDryRun";
const loadFramerFeatures = () => import("./framer-features").then((res) => res.default);
const PoweredBy = dynamic(() => import("@calcom/ee/components/PoweredBy").then((mod) => mod.default));
@@ -71,7 +73,7 @@ const BookerComponent = ({
userLocale,
hasValidLicense,
}: BookerProps & WrappedBookerProps) => {
- const { t } = useLocale();
+ const searchParams = useCompatSearchParams();
const isPlatformBookerEmbed = useIsPlatformBookerEmbed();
const [bookerState, setBookerState] = useBookerStore((state) => [state.state, state.setState], shallow);
const selectedDate = useBookerStore((state) => state.selectedDate);
@@ -269,6 +271,8 @@ const BookerComponent = ({
<>
{event.data && !isPlatform ?