javascriptkeen-io

Using keen.io from a service worker


How can I use keen.io from a service worker? It would seem the javascript sdk has no service worker support (no xhr/jsonp/beacon in a SW), and calling fetch directly returns cors errors (Failed to load resource: net::ERR_BLOCKED_BY_CLIENT).

Without proxying via a server, is there any other way to post data to keen.io?


Solution

  • Do you by chance have an adblocker/privacybadger, or firewall, that would be blocking these requests?