statsig-io / statsig-feedback

Issue Tracker for Statsig. Leave your feedback on anything we do!
5 stars 0 forks source link

`api.statsig.com/v1` blocked by default ublock origin adblocker (JS Client) #24

Closed smblee closed 2 years ago

smblee commented 2 years ago

The default configuration for one of the most popular adblocker ublock origin seems to block out the api.statsig.com domain. After digging in, one of the default list that gets pulled in is easyprivacy, which includes statsig.com as part of the domain. (refer to documentation here: https://github.com/gorhill/uBlock)

I think theres two potential problems here - one is API call to initialize doesnt work (not sure what the implication there is), and there seems to be an infinite retry logic to try to initialize by the statsig-js client.

image
vijaye-statsig commented 2 years ago

Thank you. We are aware of it and are appealing to unblock it with easy list.

smblee commented 2 years ago

Not being able to hit initialize API seems to break the experience for users - We can resort to SSR + hydration to CSR client with localMode = true enabled to essentially only rely on the initial hydration for now.

tore-statsig commented 2 years ago

In addition, we've separated initialization and event logging in newer SDK versions. I'd recommend checking out the newest

js client sdk: https://github.com/statsig-io/js-client/releases/tag/v4.17.0

or react sdk: https://github.com/statsig-io/react-sdk/releases/tag/v1.13.0

tore-statsig commented 2 years ago

With all of these efforts combined, this issue is closed