httpClient.fetchWithAuth not sending requests from site widget in production

Hi,

I’m building a Wix CLI app (Astro + React + TypeScript) with a site widget (custom element).

Problem: httpClient.fetchWithAuth() from @wixwixwixwix/essentials is not sending any network requests when called from the site widget in production (after wix release).

What I see in Console:

- [ForumFlow] loadThreads: about to call fetchWithAuth (log appears)

- [ForumFlow] loadThreads: response received (never appears)

- No network request appears in DevTools Network tab What I’ve tried:

- Relative URL: httpClient.fetchWithAuth(‘/api/forum?action=get_threads’)

- Full URL: httpClient.fetchWithAuth(‘https://.wix.run/api/forum?action=get_threads’)

- Both result in no network request The endpoint works fine — calling it directly in browser returns 403 (expected, needs auth).

Environment:

- Wix CLI v1.1.178

- @wix/essentials v0.1.23

- Site widget (custom element) built with React + TypeScript

Is httpClient.fetchWithAuth supported in site widgets?

Should I use web methods instead?

1 Like