When calling fetchJSON if no accept option in header is provided, set accept to application/json. Server will not pass redirect when front-end can process only json. Change-Id: I5cc5f64b8645772b7b289f4aa790d303cc14fdc5