Fixed cookie handling in production (https with proxy)