Implements workaround for theme preview cookie issues