A workaround for Safari's strict cookie policy when trying to write cookies from within an iframe under https