Changed GET to POST for /refresh.