You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not post data correctly to the server. Also when i put in a console.log inside the iron-ajax.html file i found out that contentType was still set as application/x-www-form-urlencoded . The documentation says we can specifiy contentype by specifiying contentType = {String}.
The text was updated successfully, but these errors were encountered:
It works fine when i try to post it to a normal service . But when i try my own backend based on Django Rest Framework it throws out errors . And when i looked into it , Django was receiving application/x-www-form-urlencoded instead of application/json.So I went inside iron-ajax/iron-ajax.html and typed in a console.log() to print all parameters and it was showing that the encoding was not changing even when I was explicitly specifying .
This does not post data correctly to the server. Also when i put in a console.log inside the iron-ajax.html file i found out that contentType was still set as
application/x-www-form-urlencoded
. The documentation says we can specifiy contentype by specifiyingcontentType = {String}
.The text was updated successfully, but these errors were encountered: