How to avoid Cross-Origin Read Blocking(CORB) in a chrome web extension
问题 I wrote a chrome web extension to avoid CORS limitation when developing my own web apps. The extension is a developers' tool and used to proxy the request from the source url to the dest url. The extension core code like this, thus developers can develop their pages on my site and request to their server side without CORS limitation: chrome.webRequest.onBeforeRequest.addListener(details => { let redirectUrl = ''; //... redirectUrl = details.url.replace(TNT.validRules[i].source, TNT.validRules