Update api lib for CORS refresh helper.