I am trying to call an API using XMLHttpRequest. The code is working fine but I am getting warning which reads :
Synchronous XMLHttpRequest on the main thread