Js cross-domain problem

Today, brushing to cross-domain knowledge seems to be the homologous strategy of browsers. The solution is jsonp. I suddenly remembered whether the get I used before was also cross-domain and the domain name was different. But I can request successfully no matter how get. It seems that I don"t need jsonp

.
  $.get("https://www.easy-mock.com/mock/5b8b30dbf032f03c5e71de7f/kuaican/typeGoods", function (data) {
                console.dir(data)
            })
May.24,2022
The interface of

easy-mock allows cross-domain requests by default, so it can be requested.


cors! You can take a look at the article I just wrote about cross-domain

Menu