So I’m trying to get join requests of a group using the roblox group api in javascript
I’m using this request:
let res = await fetch(`https://groups.roblox.com/v1/groups/14142592/join-requests?sortOrder=Asc&limit=10`, {
method: "GET",
headers: {
'Cookie': '.ROBLOSECURITY=${roblox security token here}'
}
})
console.log(res)
But I keep getting the status code 401 0 with the text being unauthorized, can someone explain to me why it isn’t working