Add support for secure cookies