session icon indicating copy to clipboard operation
session copied to clipboard

Added auto sub domain feature for cookies

Open rbjarnason opened this issue 9 years ago • 1 comments

We run one node.js server that serves multiple domains and we wanted to have the cookies shared across subdomains. The usual way to do this is to set domain: '.domain.com' in the options but this is not possible as we are serving multiple domains hence this simple addition.

rbjarnason avatar May 11 '16 08:05 rbjarnason

Thanks for the pull request! On top of the comments I made inline, you also need to add documentation to the README for this feature as well as add unit tests that cover all new branches in code you've created here.

dougwilson avatar May 27 '16 19:05 dougwilson