cross-origin-read-blocking

How to avoid Cross-Origin Read Blocking(CORB) in a chrome web extension

人盡茶涼 提交于 2019-12-01 01:09:20
问题 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

Ajax call bug with Chrome new version 73.0.3683.75?

心已入冬 提交于 2019-11-27 02:15:21
My code was working fine before the Chrome update. I make an ajax call to my server. My server receives the call, returns JSON to the client, but the answer is always empty. When I look in Fiddler I get an answer from the server. I try with JQuery, and I also try with an xmlhttp call. Always the same result Did new CORS policy rules apply...? There is my xmlHTTP call var xmlhttp = new XMLHttpRequest(); // new HttpRequest instance var theUrl = "URL"; xmlhttp.open("POST", theUrl); xmlhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); xmlhttp.send('{ "args" :{ "Obj":"my obj"

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

血红的双手。 提交于 2019-11-26 17:55:59
I am developing a Chrome extension which makes requests from certain websites to an API I control. Until Chrome 73, the extension worked correctly. After upgrading to Chrome 73, I started getting the following error: Cross-Origin Read Blocking (CORB) blocked cross origin response http://localhost:3000/api/users/1 with MIME type application/json According to Chrome's documentation on CORB , CORB will block the response of a request if all of the following are true: The resource is a "data resource". Specifically, the content type is HTML, XML, JSON The server responds with an X-Content-Type

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

亡梦爱人 提交于 2019-11-26 14:22:50
问题 I am developing a Chrome extension which makes requests from certain websites to an API I control. Until Chrome 73, the extension worked correctly. After upgrading to Chrome 73, I started getting the following error: Cross-Origin Read Blocking (CORB) blocked cross origin response http://localhost:3000/api/users/1 with MIME type application/json According to Chrome's documentation on CORB, CORB will block the response of a request if all of the following are true: The resource is a "data

Ajax call bug with Chrome new version 73.0.3683.75?

别说谁变了你拦得住时间么 提交于 2019-11-26 09:59:08
问题 My code was working fine before the Chrome update. I make an ajax call to my server. My server receives the call, returns JSON to the client, but the answer is always empty. When I look in Fiddler I get an answer from the server. I try with JQuery, and I also try with an xmlhttp call. Always the same result Did new CORS policy rules apply...? There is my xmlHTTP call var xmlhttp = new XMLHttpRequest(); // new HttpRequest instance var theUrl = \"URL\"; xmlhttp.open(\"POST\", theUrl); xmlhttp

Cross-Origin Read Blocking (CORB)

[亡魂溺海] 提交于 2019-11-26 01:47:50
问题 I have called third party API using Jquery AJAX. I am getting following error in console: Cross-Origin Read Blocking (CORB) blocked cross-origin response MY URL with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details. I have used following code for Ajax call : $.ajax({ type: \'GET\', url: My Url, contentType: \'application/json\', dataType:\'jsonp\', responseType:\'application/json\', xhrFields: { withCredentials: false }, headers: { \

Cross-Origin Read Blocking (CORB)

我是研究僧i 提交于 2019-11-26 01:30:45
I have called third party API using Jquery AJAX. I am getting following error in console: Cross-Origin Read Blocking (CORB) blocked cross-origin response MY URL with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details. I have used following code for Ajax call : $.ajax({ type: 'GET', url: My Url, contentType: 'application/json', dataType:'jsonp', responseType:'application/json', xhrFields: { withCredentials: false }, headers: { 'Access-Control-Allow-Credentials' : true, 'Access-Control-Allow-Origin':'*', 'Access-Control-Allow-Methods':'GET',