iron-ajax icon indicating copy to clipboard operation
iron-ajax copied to clipboard

Iron-ajax does two calls for service

Open Ankita-G-Mudgal opened this issue 7 years ago • 0 comments

Description

I can see two calls in network tab of dev tools using iron-ajax. If I remove the headers attribute from iron-ajax than I can only see single call in network tab.

Expected outcome

iron-ajax should call the service api only once instead of twice image

Actual outcome

image

Steps to reproduce

  1. Put iron-ajax element in a page for GET method
  2. Set the auto attribute (optional) It can be triggered through javascript also using generateRequest() method
  3. Now set the url attribute as
  4. Open it in a web browser and open dev tools
  5. In network tab tab you will see two calls for it one with response and other as a dummy call.

Browsers Affected

  • [x] Chrome
  • [x] Firefox
  • [ ] Safari 9
  • [ ] Safari 8
  • [ ] Safari 7
  • [x] Edge
  • [ ] IE 11
  • [ ] IE 10

Ankita-G-Mudgal avatar Jan 31 '18 12:01 Ankita-G-Mudgal