Skip to content
Advertisement

Tag: chromium

Can I programmatically detect whether a CORB error occurred?

I’m looking for a way to programmatically detect (using JavaScript) whether a resource load on my page (over which I have full control) was blocked by Cross-Origin Resource Blocking. For instance, because the response from https://example.com has Content-Type text/html; charset=UTF-8, the following HTML code would trigger a CORB error in Chromium-based browsers: But how can I detect that it occurred?

Advertisement