What is the reason why the js script tag sends cross-domain requests and does not enter the callback?

< script
type= "text/javascript"
defer= "defer"
src= "http://localhost:8080/cqpt/ueditor/exec?action=config&callback=bd__editor__e3zw61"

< / script >
send such a request using the script tag
http://localhost:8080/cqpt/ueditor/exec?action=config&callback=bd__editor__e3zw61
Window object also has a method mounted

clipboard.png

the backend request was accepted successfully, and the data in json format was returned.

but the receptionist always cannot receive the returned information. What is the situation?

method of ueditor dojsonp used

returned data format
{

"videoMaxSize":102400000,
"videoActionName":"uploadvideo",
"fileActionName":"uploadfile",
"fileManagerListPath":"/ueditor/jsp/upload/file/",
"imageCompressBorder":1600,
"imageManagerAllowFiles":[],
"imageManagerListPath":"/ueditor/jsp/upload/image/",
"fileMaxSize":51200000,
"fileManagerAllowFiles":[],
"fileManagerActionName":"listfile",
"snapscreenInsertAlign":"none",
"scrawlActionName":"uploadscrawl",
"videoFieldName":"upfile",
"imageCompressEnable":true,
"videoUrlPrefix":"",
"fileManagerUrlPrefix":"",
"catcherAllowFiles":[],
"imageManagerActionName":"listimage",
"snapscreenPathFormat":"/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
"scrawlPathFormat":"/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
"scrawlMaxSize":2048000,
"imageInsertAlign":"none",
"catcherPathFormat":"/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}",
"catcherMaxSize":2048000,
"snapscreenUrlPrefix":"",
"imagePathFormat":"/uploadfile/{yyyy}{mm}{dd}/{time}{rand:6}",
"imageManagerUrlPrefix":"",
"scrawlUrlPrefix":"",
"scrawlFieldName":"upfile",
"imageMaxSize":2048000,
"imageAllowFiles":[],
"snapscreenActionName":"uploadimage",
"catcherActionName":"catchimage",
"fileFieldName":"upfile",
"fileUrlPrefix":"",
"imageManagerInsertAlign":"none",
"catcherLocalDomain":[],
"filePathFormat":"/ueditor/jsp/upload/file/{yyyy}{mm}{dd}/{time}{rand:6}",
"videoPathFormat":"/ueditor/jsp/upload/video/{yyyy}{mm}{dd}/{time}{rand:6}",
"fileManagerListSize":20,
"imageActionName":"collect/uploadFile",
"imageFieldName":"upfile",
"imageUrlPrefix":"http://127.0.0.1:8080/cqpt",
"scrawlInsertAlign":"none",
"fileAllowFiles":[],
"catcherUrlPrefix":"",
"imageManagerListSize":20,
"catcherFieldName":"source",
"videoAllowFiles":[]

}

Mar.12,2021

what is the string spelled for you by the back end? can you send it out? just send the structure.
Let the back end spell such a string to the front end

.
bd__editor__e3zw61(
  // {}
)

your request contains the name bd__editor__e3zw61. Just let the backend spell it for you

Is there something wrong with

, that is, the returned script only declares the function bd__editor__e3zw61 but does not execute


insufficient information.

  1. line by line at suspicious locations console.log ;
  2. check the web tag of the developer's tool and check the content of the request.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b303a8-2bd26.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b303a8-2bd26.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?