Skip to content

Commit

Permalink
fix: allow for task dataset download on new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
oreHGA committed May 22, 2024
1 parent eef7d1f commit b791545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/lab/experiment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const Experiment: FC<IExperiment> = (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;
Expand Down

0 comments on commit b791545

Please sign in to comment.