Fix for cookies being set incorrectly on realm pages.