Phantomjs应该不会发送cookie

我正在使用phantomjs,特别是phantom-prebuiltnpm查看我的节点快递应用程序提供的页面,但它不是发送cookie,尽pipe在同一个域名。

我怎样才能得到幻像正确发送cookies?

 var system = require('system'); var page = require('webpage').create(); phantom.addCookie({ domain: 'domain', name: 'ru.sid', value: 'aValue' }); console.log(JSON.stringify(phantom.cookies[0]); /* This is what is logged { domain: '.domain', httponly: false, name: 'ru.sid', path: '/', secure: false, value: 'aValue' } */ page.open('domain/anotherPath') //cookie is not sent