Commit 5299429e authored by bbudge@chromium.org's avatar bbudge@chromium.org

Facebook : photo upload fails. Give PPB_URLLoader_Impl ability to send...

Facebook : photo upload fails. Give PPB_URLLoader_Impl ability to send credentials when given universal access.
BUG= http://code.google.com/p/chromium-os/issues/detail?id=22580
TEST=none

Review URL: http://codereview.chromium.org/8550002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109839 0039d316-1c4b-4281-b951-d872f2087c98
parent 1139c0bf
......@@ -130,13 +130,14 @@ int32_t PPB_URLLoader_Impl::Open(PP_Resource request_id,
request_data_ = request->GetData();
WebURLLoaderOptions options;
options.allowCredentials = request_data_.allow_credentials;
if (has_universal_access_) {
options.allowCredentials = true;
options.crossOriginRequestPolicy =
WebURLLoaderOptions::CrossOriginRequestPolicyAllow;
} else {
// All other HTTP requests are untrusted.
options.untrustedHTTP = true;
options.allowCredentials = request_data_.allow_credentials;
if (request_data_.allow_cross_origin_requests) {
// Allow cross-origin requests with access control.
options.crossOriginRequestPolicy =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment