in Google browser, open the written local html, this html has a $.ajax request, and the requested url is a distant server. Before, you can initiate ajax requests, but it will not occur as shown in the following figure:
I have tried-- allow-file-access-from-files, but it doesn"t work, including restarting the computer with the cmd command. Does this error mean that I am cross-domain? Then why was it all right with me before? This is what bothers me. When I tried it in the afternoon, I didn"t know what to press, and suddenly I could make a request again, but then it didn"t work until now.
and the url I requested with ajax is a remote server, so am I cross-domain? Xhr is not the client initiates the request to the server, so the local client and the server are not two domains, is the browser"s own cors to solve this problem? Then why did this happen to me