When I setup a WKURLSchemeHandler with my custom Scheme, then send a XMLHTTPURLRequst . Just like the following code: var request = new XMLHttpRequest(); request.open('GET', 'https://www.apple.com/ac/globalnav/3/en_US/images/globalnav/search/image_small.svg', false); request.send(null); Webkit send the request immediately, but not send a Option request to www.apple.com which the CORS rule needed. I hope WKURLSchemeHandler should support CORS in the feature.
<rdar://problem/51957846>
(In reply to Jin from comment #0) > When I setup a WKURLSchemeHandler with my custom Scheme, then send a > XMLHTTPURLRequst . > Just like the following code: > > var request = new XMLHttpRequest(); > request.open('GET', > 'https://www.apple.com/ac/globalnav/3/en_US/images/globalnav/search/ > image_small.svg', false); > request.send(null); > > > Webkit send the request immediately, but not send a Option request to > www.apple.com which the CORS rule needed. > > > I hope WKURLSchemeHandler should support CORS in the feature. For Example: Load request with "uc://www.google.com" Then send a Sync XMLHttpRequest request 'https://www.apple.com/ac/globalnav/3/en_US/images/globalnav/search/image_small.svg' The XMLHttpRequest just send to apple.com. But if a send it with ASync mode , it will check the CORS rule
*** This bug has been marked as a duplicate of bug 205198 ***