Is there a reason why this works for me when I do it in Zapier, but I get an empty response when I try to do my own fetch request?
I’m using ObservableHQ, but the idea is the same. Shouldn’t this work?:
fetch("https://mycommunity.com/g.json", {
headers: {
"Content-Type": "multipart/form-data",
"Api-Username": Secret("DISCOURSE_USERNAME"),
"Api-Key": Secret("DISCOURSE_KEY")
},
method: "GET",
mode: "no-cors"
})