Skip to content

Commit 154b760

Browse files
committed
Fix nwjs#2819: enable cookie support for web sockets
1 parent 380c830 commit 154b760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/shell_url_request_context_getter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
190190
cookie_store->GetCookieMonster()->SetPersistSessionCookies(true);
191191
storage_->set_cookie_store(cookie_store.get());
192192

193-
const char* schemes[] = {"http", "https", "file", "app"};
194-
cookie_store->GetCookieMonster()->SetCookieableSchemes(schemes, 4);
193+
const char* schemes[] = {"http", "https", "ws", "wss", "app", "file"};
194+
cookie_store->GetCookieMonster()->SetCookieableSchemes(schemes, 6);
195195

196196
storage_->set_channel_id_service(new net::ChannelIDService(
197197
new net::DefaultChannelIDStore(NULL),

0 commit comments

Comments
 (0)