How do you send x-www-form-urlencoded data with Angular $resource?
问题 I am trying to submit a POST request to a server which only accepts the data in the x-www-form-urlencoded format. When I test it out on Postman, it works. For example, the preview header looks like: POST /api/signin HTTP/1.1 Host: myproj.herokuapp.com Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded email=joe%40gmail.com&password=1234567 However, when I run it from my app, the header, as viewed in Chrome console, looks like: Remote Address:10.10.10.250:80 Request URL