feat: prevent clients from other domains from joining the room

This commit is contained in:
Jeremy Kahn 2022-08-15 21:47:45 -05:00
parent b9e9ae398e
commit a4472d6982

View File

@ -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,
})