// https://github.com/pillarjs/cookies/blob/master/index.js
if (!secure && opts && opts.secure) {
throw new Error('Cannot send secure cookie over unencrypted connection')
}
this error comes only if you connect through HTTP and have secure set to true.