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)```