Set header of AJAX call, set asynchronous call as false

For POST type, header needs to be set in order for the server to know what to do with the uploaded content.
Asynchronous call set to false because response is wanted immediately.