Javascript generated client triggers errors on User-Agent in browser #1020
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Description of the Problem
While learning encore.dev using the uptime tutorial I found out the frontend client generates the following errors in the browser console
The error is thrown because the generated js client attempts to set the User-Agent and the browser doesn't allow it.
Expected Behavior
Generated JS client for browser should not attempt to set User-Agent. User-Agent should be only set when the client is used in backend services.
Environment
The text was updated successfully, but these errors were encountered: