remove uneeded  local in cors middleware registratio