remove commit errors
allow POST and JSON only