Fixed cors problem with submitting metrics