iron-ajax
iron-ajax copied to clipboard
Iron-ajax does two calls for service
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
Actual outcome
Steps to reproduce
- Put iron-ajax element in a page for GET method
- Set the auto attribute (optional) It can be triggered through javascript also using generateRequest() method
- Now set the url attribute as
- Open it in a web browser and open dev tools
- 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