title: AngularJS : Prevent auto surrounding quotes to post values in $http post request?
body: <p>I have a post request that sends some token post parameters. Value <code>token</code> doesn't surrounded with any quotes. But, when making <code>http</code> request, the <code>token</code> get automatically wrapped with single/double quotes. </p>
  
  <p>Here's the code that makes <code>$http</code> POST request,</p>
  
  <pre><code>var data = { YII_CSRF_TOKEN : token};
  console.info(token);
  $http.post('..some url here..', data).success (function (response){
  
  });
  </code></pre>
  
  <p>BTW, Logging the token gives me the token which has no quotes wrapped.</p>
  
  <p>Current result,</p>
  
  <p><a href="https://i.stack.imgur.com/bdFGh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bdFGh.png" alt="enter image description here"></a></p>
  
  <p>You could see the value of token gets automatically surrounded with quotes.</p>
  
  <p>My expected output to be like,</p>
  
  <p><a href="https://i.stack.imgur.com/M60zx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M60zx.png" alt="enter image description here"></a></p>