[Webkit-unassigned] [Bug 199064] WKURLSchemeHandler does't run the CORS rule

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 20 23:07:27 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199064

--- Comment #2 from Jin <ljin.zq at gmail.com> ---
(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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190621/106df23e/attachment.html>


More information about the webkit-unassigned mailing list