Fixed cors error in r2r