After that, I tried putting a .roblosecurity cookie in a header, and yet again, I ran into some problems such as: Header "cookie" has unallowed character "|" and Header "cookie" has unallowed character "%" after I tried using HttpService:UrlEncode(). This is probably because I incorrectly formatted the cookie.
You can’t pass a .ROBLOSECURITY through the header, it seems, unfortunately. You’d have to use your own server as a proxy and store headers on that instead of passing it through HttpService, or something similar.
You would just make a request to a website you can host code on. I’ve used AWS Lambda in the past, but something like Heroku or Glitch could probably work for this. When you make the request, have the server make a request to the actual site you want (the games.roblox.com endpoint) and have it use the headers you want from your server, not sending them through HttpService.
The API requires an 13+ Authenticated User to work since it is about Social link which is not available for account under 13.
The problem is that the server doesn’t have A User therefore It is Unauthorized.
Assuming you’re using Express.js, you can simply attach JSON data to the body of the response (since GET requests allow you to do so).
ie.
response.json("Example value, can be anything which could be JSON encoded")
.status(200) // 200 tells us that the request went through all fine
.end(); // Closes the response and finishes the HTTP request
Okay, I haven’t worked with JavaScript before so I wouldn’t know, but again, thanks for the information.
I think I will go over some tutorials online to make this proxy server.