I have a post request that sends some token post parameters. Value token doesn't surrounded with any quotes. But, when making http request, the token get automatically wrapped with single/double quotes. 
Here's the code that makes $http POST request,
var data = { YII_CSRF_TOKEN : token};
console.info(token);
$http.post('..some url here..', data).success (function (response){
});
BTW, Logging the token gives me the token which has no quotes wrapped.
Current result,
You could see the value of token gets automatically surrounded with quotes.
My expected output to be like,


 
    