forked from Shiloh/remnantchat
feat: prevent clients from other domains from joining the room
This commit is contained in:
parent
b9e9ae398e
commit
a4472d6982
@ -48,7 +48,7 @@ function RoomLoader() {
|
|||||||
const { roomId = '' } = useParams()
|
const { roomId = '' } = useParams()
|
||||||
|
|
||||||
const peerRoom = usePeerRoom({
|
const peerRoom = usePeerRoom({
|
||||||
appId: `${process.env.REACT_APP_NAME}`,
|
appId: `${encodeURI(window.location.origin)}_${process.env.REACT_APP_NAME}`,
|
||||||
roomId,
|
roomId,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user