Commit df12ac76 authored by estade's avatar estade Committed by Commit bot

Strip cookies from getrealpan request.

Hopefully this addresses the scope errors the server was logging.

BUG=none

Review URL: https://codereview.chromium.org/957603002

Cr-Commit-Position: refs/heads/master@{#318062}
parent dfb97c2f
......@@ -17,6 +17,7 @@
#include "components/autofill/core/common/autofill_switches.h"
#include "google_apis/gaia/identity_provider.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
......@@ -105,6 +106,8 @@ void RealPanWalletClient::UnmaskCard(
request_.reset(net::URLFetcher::Create(
0, GetUnmaskCardRequestUrl(), net::URLFetcher::POST, this));
request_->SetRequestContext(context_getter_.get());
request_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DISABLE_CACHE);
base::DictionaryValue request_dict;
request_dict.SetString("encrypted_cvc", "__param:s7e_13_cvc");
......
......@@ -76,8 +76,7 @@ class RealPanWalletClient : public net::URLFetcherDelegate,
// Adds the token to |request_| and starts the request.
void SetOAuth2TokenAndStartRequest();
// The context for the request. Ensures the gdToken cookie is set as a header
// in the requests to Online Wallet if it is present.
// The context for the request.
scoped_refptr<net::URLRequestContextGetter> context_getter_;
// Observer class that has its various On* methods called based on the results
......
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