Cross-origin request in a content script is blocked by CORB despite the correct CORS headers

Based on the examples in “Changes to Cross-Origin Requests in Chrome Extension Content Scripts”, I replaced all invocations of fetch with a new method fetchResource, that has a similar API, but delegates the fetch call to the background page: // contentScript.js function fetchResource(input, init) { return new Promise((resolve, reject) => { chrome.runtime.sendMessage({input, init}, messageResponse => … Read more

Ajax call bug with Chrome new version 73.0.3683.75?

I had the same problem after upgrade to Chrome 73. Thanks to @wOxxOm This is the workaround until now: Go to chrome://flags Disabled the Enable network service UPDATE: This is not a bug, according to this announcement: https://www.chromium.org/Home/chromium-security/extension-content-script-fetches You will need to put the Cross-Origin Fetches to the background script instead of the content script.

How to stop CORB from blocking requests to data resources that respond with CORS headers?

Based on the examples in “Changes to Cross-Origin Requests in Chrome Extension Content Scripts”, I replaced all invocations of fetch with a new method fetchResource, that has a similar API, but delegates the fetch call to the background page: // contentScript.js function fetchResource(input, init) { return new Promise((resolve, reject) => { chrome.runtime.sendMessage({input, init}, messageResponse => … Read more