Skip to content

Commit 66217f5

Browse files
committed
support document.cookie for app protocol
part of req for nwjs#1012
1 parent fdf3947 commit 66217f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/net/shell_url_request_context_getter.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
124124
cookie_store->GetCookieMonster()->SetPersistSessionCookies(true);
125125
storage_->set_cookie_store(cookie_store);
126126

127+
const char* schemes[] = {"app"};
128+
cookie_store->GetCookieMonster()->SetCookieableSchemes(schemes, 1);
129+
127130
storage_->set_server_bound_cert_service(new net::ServerBoundCertService(
128131
new net::DefaultServerBoundCertStore(NULL),
129132
base::WorkerPool::GetTaskRunner(true)));

0 commit comments

Comments
 (0)