2

Whitelist domains so that XHR calls can be executed


J
Juan

We currently have an internal developer site where we have a summarised version of our performances across our pages. I would love to be able to query Debug Bear's API from that website so that I can render these summaries automatically rather than doing them by hand each week. For this, each project could potentially provide several domains to whitelist so that Debug Bear's API recognises them, thus avoiding CORS

A

Activity Newest / Oldest

M

Matt

Hey Juan, thanks for the suggestion! I think the best way to build something like this would be to use a simple backend, e.g. a Cloud Function/Lambda function. That way you'd also not have to ship the API key to the frontend.


J

Juan

I agree, but unfortunately this is way to much for just showing some stats in a CMS app 😅 The idea is to just inject some JS like in an HTML widget to display those stats

I understand in any case, thanks for the response