Hello,
So I am trying to load data from Main Experience to Test Experience to allow players to load their main save into the testing branch for testing. After learning about Open Cloud and Datastore API, I tried using Http requests to get the data.
local HttpService = game:GetService("HttpService");
local baseUrl = "https://apis.roblox.com/datastores/v1/universes/65708455";
local apiKey = "";
local rUrl = baseUrl .."/standard-datastores/datastore/entries/entry?datastoreName=Profiles&entryKey=16170943";
local headers = {
["x-api-key"]=apiKey;
};
print(HttpService:RequestAsync({
Url=rUrl;
Method="GET";
Headers=headers;
}))
I successfully fetched the data outside of Roblox but when I tried it on Roblox, I got the “HttpService is not allowed to access ROBLOX resources” error.
Why is that and is there another way to load data from Experience A to Experience B?