PolymerElements / iron-ajax

Easily make ajax requests
https://www.webcomponents.org/element/PolymerElements/iron-ajax
127 stars 113 forks source link

ContentType attribute of iron-ajax doesn't get set when doing POST request (sends empty response) #196

Closed swastikpareek closed 8 years ago

swastikpareek commented 8 years ago

I have created a local node server that uses mongodb at the backend for CRUD operation . I used iron-ajax in my custom polymer tag (swat-content-load) for making POST request on my local server. I passed the req object in body property of iron-ajax tab and set up the contentType property on it . On a click event of a button I initiated the request using generateRequest() function.

When I initialised the POST request on the server side I was getting a req.body as an empty object.

This is my code `