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?
good work here. this is indeed the internals before what makes $.ajax works. however with IE you have to make a new ActiveXObject so I'm not sure this would be cross browser compliant