wangEditor 跨域

灯火 Lv3

问题

今天弄wangEditor富文本发现上传一直提示
This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.
看下控制台打印提示跨域

一个图片
可问题是后台这个上传接口允许跨域啊

解决

将withCredentials 设置为 false

1
2
// 跨域是否传递 cookie ,默认为 false
withCredentials: false
  • 标题: wangEditor 跨域
  • 作者: 灯火
  • 创建于 : 2023-11-13 01:51:33
  • 更新于 : 2023-11-15 09:31:46
  • 链接: https://blog.juniverse.top/2023/11/13/wangEditor-cross-domain/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论
此页目录
wangEditor 跨域