ajax assignment - CORS issue fixed

Fixed Cross Origin Resource Sharing problem.  It was denying access because I had set a custom header attribute and set .withCredentials to true. -- However, now I am not able to specify a mime type (which is a header attribute) and I need to JSON.parse() the responseText.  I wonder if this is something jQuery does behind the scenes?