Add workaround for safari/ios thirdparty domain -issue