Jsonp cross-domain request, if the website where the resource is located is limited, how to deal with the data that cannot be requested?

data cannot be returned when using a jsonp request. Because the site has made restrictions, you can only request under this domain name to get the data.
could you tell me how to solve this problem?
or there are other cross-domain methods that can solve this problem


try the local agent


to implement the JSONP cross-domain request, you need the cooperation of the server: when you use JSONP mode to request data, the server needs to return a piece of executable JavaScript code.
so, modify the Access-Control-Allow-Origin on the server side.

Menu