Angular 4 single API request running multiple times

后端 未结 2 400
离开以前
离开以前 2020-12-21 16:33

I am having issue regarding Angular 4 App. I have created an app in which data is getting from third party APIs. The issue I am getting is my APIs are calling for multiple t

相关标签:
2条回答
  • 2020-12-21 17:00

    There May be some issue with your code. Browser doesn't add run any extra request except flight request. To check this you first check how many time that function is calling. I am very sure about this because I had the same issue.

    0 讨论(0)
  • 2020-12-21 17:04

    This is a default browser feature. every time when you run a HTTP request your browser will run that twice one with a method you specified and other is for method OPTION where browser checks either that request is exist or not.

    0 讨论(0)
提交回复
热议问题