magreenblatt wrote:Can you share a URL that reproduces the problem, for debugging purposes?
Hi,
We are getting this weird issue on CEF latest client (v93) in our office environment but not getting it with the same client on local machine. Same also works in stand alone chrome browser and edge chromium browser in both office environement and local machine.
when executing the below code which has the authorization header in its request on Cef Client(office environment), a preflight request is raised and no further request is made ,as preflight request itself gets into the error.
On console bar, i can only see err::ERR_Failed error.
Not sure why it is not working in my company's office environment.
Please note that this works fine when i run locally.
Sample code :
---------------------------------------------------------------------------------------------------------------------------------------------
function reqListener(){
console.log(this.responseText)
}
var oreq = new XMLHttpRequest();
oreq.addEventListener("load",reqListener);
oreq.open("GET","https://mytestapi.free.beeceptor.com/my/api//path")
oreq.setRequestHeader("authorization-token","dummy-token");
oreq.send();
--------------------------------------------------------------------------------------------------------
Could you please suggest what could be that thing that is causing this preflight request to fail?