HTTP requests only works in studio. Error 403 (Forbidden)

I’m trying to make a bug report feature in my game, it all works in studio but if I try to test it ingame, it says “Error 403 (Forbidden)”. I have HTTP requests enabled, here’s the code fired by a textbutton:

local repStor = game:GetService("ReplicatedStorage")

local reportBug = repStor:WaitForChild("GameItems"):WaitForChild("ReportBug")

local httpService = game:GetService("HttpService")

reportBug.OnServerEvent:Connect(function(player, text)

local Data = {

["content"] = "```Bug Report: "..text.." Report by user: "..player.Name.." UserId: "..player.UserId.."```"

}

Data = httpService:JSONEncode(Data)

httpService:PostAsync("the webhook url", Data)

end)```

Set place acess from private to public.

1 Like

For some reason it still doesn’t work.

Is studio acess to api services enabled?

He’s probably using discord(im assuming) and I sent him a fix for that, HTTP services are the ones needed, not api services

1 Like

If you find my answer useful, please mark is as solution as it helps a ton! :smiling_face_with_three_hearts:

1 Like

Ahh yes i see thts tru, my bad XD

1 Like

This will work providing you proxy the request to Discord.

1 Like

Thank you very much, this works fine now.