Ueditor跨域上传

ADMIN ueditor , 跨域 2017-03-13 3913 次浏览
打开 ueditor/ueditor.config.js ,找到 serverUrl 参数,修改为远程上传。然后将Ueditor 下的上传脚本上传到被控服务器的相应目录,如 Ueitor下的 php / asp 上传到 B 机器的目录。然后在 B 机器的设置中配置IIS header 或者直接在 controller.[文件后缀]中头部增加或者取消 header 注释。如 PHP 上传脚本中有//header('Access-Control-Allow-Origin: http://www.baidu.com'); //设置http://www.baidu.com允许跨域访问 //header('Access-Control-Allow-Headers: X-Requested-With,X_Reques [...]