One of my coworkers has created a backend application using Spring Boot. Strangely, I can only access the API when both our computers are connected to the same hotspot. If I try to access the other computer's API and port through a browser or Postman, I am able to retrieve data from the REST API without any issues
However, when I attempt to fetch data using Axios or the fetch() method in my application,
the fetch method responds like this:
Can anyone provide guidance on how to resolve this issue?
PS: I have included the temporary code snippet for fetching here.