question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client-side CORB Warning

See original GitHub issue

We use this keen-tracking package to stream events directly from client-side browsers. Since recently this warning has been showing up:

Cross-Origin Read Blocking (CORB) blocked cross-origin response <KEEN API URL> with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.

Anything we can do from our side to fix and/or circumvent it?

Thanks!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maciejrybanieccommented, Feb 24, 2020

Hi @vliegenthart

Actually the fixing for this issue is currently not on our roadmap due to other initiatives - especially having in mind that the discussion about beaconAPI is still open for different browsers (Mozilla) and it could change in near future.

The error about CORB should not affect the page that using Keen-Tracking and all events should be sent to correctly.

We’ll try to address that issue as soon as it will be possible - by adding support to keepAlive flag - however the issue mentioned earlier (Bug) must be resolved to deliver a full working solution.

0reactions
maciejrybanieccommented, Feb 24, 2020

Hi @DroidUnknown, Could You please specify if the request or responses are blocked ? Based on specification CORB prevents the browser from delivering cross-origin network responses. So all of events should be delivered correctly to Keen platform.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CORS - Is it a client-side thing, a server-side ... - Stack Overflow
CORS is applied to requests when an Origin header is included in the request. This includes requests made from JavaScript and POST requests....
Read more >
Handling CORS in Web Applications - How-To Geek
Although CORS is a browser technology, you can't directly influence it with client-side code. This prevents malicious scripts from side-stepping ...
Read more >
CORS errors - HTTP - MDN Web Docs - Mozilla
If the CORS configuration isn't setup correctly, the browser console will present an error like "Cross-Origin Request Blocked: The Same Origin ...
Read more >
Understanding and Resolving CORS Error - Contentstack
CORS is implemented on the server-side; it cannot be reconfigured on the client-side. The CORS behavior, commonly termed as CORS error, is a...
Read more >
Fixing Common Problems with CORS and JavaScript
It suggests two solutions. The second suggestion is to change the mode from cors to no-cors in the JavaScript fetch request. This is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found