CORB policy blocking errors on production

#1

I have sentry configured and working correctly in our staging environment. However, I just noticed an issue on production. A JS error would be thrown and then I see this in the console:

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://sentry.io/api/1393712/store/?sentry_key=af30af5ff84b459284656bfa9893d327&sentry_version=7 with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.

My first thought was to check the mime type of the script throwing the error, this was correctly set to application/javascript

I have the Allowed Domains set up correctly for this project, in the format of https://domain.com

Wondered if anyone could point me in the right direction here?

#2

The error being thrown is from a 3rd party script when running locally.

https://www.gstatic.com/recaptcha/api2/v1555968629716/recaptcha__en.js

But on production this script gets built into the main.js file.

Full error I am receiving on prod:

main.1ed33d61adc0201df49e.js:1 Unhandled Promise rejection: Timeout ; Zone: <root> ; Task: Promise.then ; Value: Timeout
Uncaught (in promise) Timeout

Which is documented here, https://github.com/DethAriel/ng-recaptcha/issues/123