That allows apex rest calls to be done through the ajax method.