Axios sends get requests twice, both of which are get requests, not options on the Internet.

clipboard.png
network

clipboard.png
this is a request initiated by the front end. Is the target IP, of an agent localhost,
now changed to post request, or will it be changed to get, once and post once


the first is an unsolicited request, and the second is a request sent by the browser after assigning a value to the image src.
look at the type:
clipboard.png


this is not a secondary request, note the type, xhr is a request, and img is a resource load. Open your console, click Network, select the XHR option in a row of buttons, and then refresh the page. What you see here are all your requests


your requests are not the same

Menu