What steps will reproduce the problem?
universal_access_from_file_urlson CefBrowserSettings to
- Register scheme in
registrar->AddCustomScheme("app", true, true, false);
- Request external site with XMLHttpRequest, in the page from custom scheme
var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://example.com/', true); xhr.send();
- Following error occurs:
XMLHttpRequest cannot load https://example.com/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'app://example' is therefore not allowed access.
file:/// url instead of custom scheme works)
What is the expected output? What do you see instead?
The request should be sent successfully.
What version of the product are you using? On what operating system?
I tested with CEF 3.2454.1328.gc45b7de and CEF 3.2454.1304.ge979611. Also note that it works on 2357 branch.
Does the problem reproduce with the cefclient or cefsimple sample application at the same version? How about with a newer or older version?
Reproducible on CEF 3.2454.1328.gc45b7de / CEF 3.2454.1304.ge979611. Works well in 2357 branch.
Does the problem reproduce with Google Chrome at the same version? How about with a newer or older version?
Google Chrome doesn't have a flag equivalent to universal_access_from_file_urls.