Set response.data to res.response or res.text for cors hook