Chromium Code Reviews
DescriptionSupport full range of PreflightPolicy over WebURLLoaderOptions
Allow users of WebURLLoader to state the preflight behavior to follow
for the request. This is done so that the user/caller can explicitly
control when its author header set
(http://www.w3.org/TR/cors/#author-request-headers) is empty, then no
preflight must be performed.
This puts the responsibility on the caller to adhere to CORS and not
disable preflighting when the author set is non-empty or the request
is over non-simple methods (http://www.w3.org/TR/cors/#simple-method )
The WebURLLoaderOptions default is ConsiderPreflight.
R=jochen
BUG=173727
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162225
Patch Set 1 #
Total comments: 1
Patch Set 2 : compile-time asserts for ensuring that PreflightPolicy enums remain sync #
Messages
Total messages: 5 (0 generated)
|
||||||||||||||||||||||||||||