Chrome and safari CORS fix

This is a chrome CORS fix, 
Chrome changes the request method from POST to 
OPTIONS thus not carriying the initial xml stanza.
this keeps the http request pending for random time 
period before restarting it. 
Setting content type of the request to text/plain avoids this problem