Yes, just did a test, static html page, using jQuery to initiate an ajax request, request the background project running under the local Tomcat to get json data.
1. Visit directly through the web page:
option
2.webstorm:
got the data
I would like to ask whether the static web page can issue a http request to get the json data from the background? If not, why not? If I can, why do I only issue option requests when I do the test? Does issuing an option request without subsequent action mean that the http request failed? I have looked up a lot of information on the Internet, but there is a big difference. I beg your pardon.