From b791545ca63895ba178395ce0760cead7c9f1327 Mon Sep 17 00:00:00 2001 From: Ore O Date: Wed, 22 May 2024 03:41:47 +0100 Subject: [PATCH] fix: allow for task dataset download on new domain --- frontend/src/components/lab/experiment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/lab/experiment.tsx b/frontend/src/components/lab/experiment.tsx index 0aaef4d5..1d179ebb 100644 --- a/frontend/src/components/lab/experiment.tsx +++ b/frontend/src/components/lab/experiment.tsx @@ -100,7 +100,7 @@ export const Experiment: FC = (experiment) => { window.addEventListener("message", (event) => { // IMPORTANT: Check the origin of the data! // You should probably not use '*', but restrict it to certain domains: - if (event.origin.startsWith("https://localhost:") || event.origin.startsWith("https://usefusion.app")) { + if (event.origin.startsWith("https://localhost:") || event.origin.startsWith("https://usefusion.app") || event.origin.startsWith("https://usefusion.ai")) { console.log("event", event); if (typeof event.data === "string") { return;