Bug 199064
Summary: | WKURLSchemeHandler does't run the CORS rule | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jin <ljin.zq> |
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | achristensen, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Jin
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/51957846>
Jin
(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
Alex Christensen
*** This bug has been marked as a duplicate of bug 205198 ***