Skip to content

Iron-ajax does two calls for service #309

@Ankita-G-Mudgal

Description

@Ankita-G-Mudgal

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

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions