CORS issue in cefsharp.winforms when not in Chrome #4263
Replies: 2 comments 16 replies
-
You'll need to test with the CEF Sample Application as I suspect this would need to be fixed upstream. CEF has it's own issue tracker at https://bitbucket.org/chromiumembedded/cef/issues?status=new&status=open It's probably worth trying to disable CEF's network interceptor via the
This is also a CEF issue see https://bitbucket.org/chromiumembedded/cef/issues/2918/cefaddcrossoriginwhitelistentry-not-fully It's unlikely this can be fixed directly in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I came across a CORS issue in CefSharp.Winforms when in full-blown Chrome, I don't get the CORS errors.
I had not done any javascript/jquery injection and still got the errors.
To reproduce, navigate to https://scoopfit.com and select a product to order, and go through the checkout process up until the payment method options. Select Afterpay and click pay now (don't worry, we're not actually ordering).
Once that page loads, open developer tools and go to the console tab.
If the above was done in Chrome, there will be no CORS errors although there are some other errors regarding inline scripts and resource load errors (but that's just Shopify - I expect to see that).
If the above was loaded in CefSharp, there are a number of CORS errors.
I have attempted to initialize chrome with the disable-web-security command line option, but that does not disable CORS. Is there something I can do to circumvent this issue? This is the first time I have come across this issue.
I'm using the latest version of CefSharp.WinForms (v105); and also had the same issue on version 99. I updated to 105 from 99 to see if it would correct the issue, but it did not.
I have also attempted using the AddCrossOriginWhitelistEntry() method still to no avail (although I expected that not to work as I have seen that this method needs to be corrected in another discussion).
This one has me totally stumped just for the fact that I'm not making any requests other than just loading the site as in a full Chrome browser and not getting the same result. With those CORS errors, even if you populate the phone number or email address, the submit button will not work and you will see 'too many requests' errors when you click that button.
any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions