Ajax cross-domain request error Unexpected token:

The

interface is not owned by your own website, so it is basically impossible for the background to make any changes, so I would like to consult God about how to solve this situation. The code is as follows:

clipboard.png

clipboard.png

clipboard.png

Mar.18,2021

your interface returns json format
but the jsonp jsonp only receives data in function callback format: functionName ({name: "1"})

  1. if the other party supports cross-domain direct get acquisition, do not add jsonp .
  2. as a proxy backend, there are no cross-domain restrictions on the client-> proxy service-> other people's server-> proxy service-> client

syntax error? Don't you already have the data?

Menu