Upgraded to Premium plan yesterday to utilize re-ranking. Followed this guide (Send Insights Events | Building Search UI | Guide | Algolia Documentation) but keep running into CORB issue.
algoliasearch-lite.umd.js | 4.8.5
What I did:
- Loaded search-insights library via jsdelivr by including it in .
- Created insights middleware and set useCookie: true.
Every time I refine results, Chrome’s console logs a warning with the following message:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://insights.algolia.io/1/events?X-Algolia-Application-Id=<APP_ID>&X-Algolia-API-Key=<API_KEY>&X-Algolia-Agent=insights-js%20(2.0.0) with MIME type application/json. See Cross-Origin Read Blocking (CORB) - Chrome Platform Status for more details.
I passed the onEvent event handler to insightsMiddleware and insightsMethod, payload, widgetType, eventType are all properly set. It’s only when I call aa(insightsMethod, payload) to send event to Algolia that the CORB issue pops up.