Upon loading the Browser Agent JS, we check every 100ms for the availability of BrowserAgent, BrowserAgentExtension and also BrowserAgentExtension.isBAAlive(), and as soon as true is returned, we attempt things like starting a transaction or adding a custom log - the necessary API calls are made, but it seems that the payload isn't well-formed so these logs aren't recorded on the backend
The application makes use of the following (on various pages of a multi-page app), almost as soon as the page loads:
so we want to check that the browser agent is ready to take these requests before we make them
What could be the issue?
DX O2 BrowserAgent Extension API
In the non-working case, CORS errors are occurring, and the same were listed in the payload too:
WORKAROUND:
Add an additional small delay. New sequence of events when a page loads: