From a4472d69829f9276604dba97b63aa1d47a88ea5a Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Mon, 15 Aug 2022 21:47:45 -0500 Subject: [PATCH] feat: prevent clients from other domains from joining the room --- src/components/Room/Room.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Room/Room.tsx b/src/components/Room/Room.tsx index 983e023..bf52311 100644 --- a/src/components/Room/Room.tsx +++ b/src/components/Room/Room.tsx @@ -48,7 +48,7 @@ function RoomLoader() { const { roomId = '' } = useParams() const peerRoom = usePeerRoom({ - appId: `${process.env.REACT_APP_NAME}`, + appId: `${encodeURI(window.location.origin)}_${process.env.REACT_APP_NAME}`, roomId, })