jquery - jquery - Mailchimp 跨域读取阻止 (CORB) 阻止了 MIME 类型 application/json 的跨域响应
问题描述
我正在尝试在 ajax 调用中使用 Mailchimps post-json,如下所示:
$.ajax({
type: 'GET',
url: 'https://example.us6.list-manage.com/subscribe/post-json?u=(MY LIST ID)&id=(SOME SORT OF ID)',
data: {'EMAIL' : $("#email").val()},
cache: false,
dataType: 'jsonp',
contentType: 'application/json; charset=utf-8',
error: function (err) {
alert('Could not connect to the registration server. Please try again later.');
},
success: function (data) {
}
});
但我得到这个错误:
跨域读取阻塞 (CORB) 阻止了 MIME 类型 application/json 的跨域响应
我怎么能在我这边度过这个难关?
解决方案
推荐阅读
- kubernetes - 将 PromQL 'sum(rate(value))' 查询转换为 InfluxQL
- bash - docker-compose 中的条件逻辑
- c# - 如何在二维动态数组中找到最小值
- kdb - 将迭代函数的输出存储到唯一表 KDB+/Q
- android - 如果同一个应用在 Play 商店中提交两次,会有什么问题吗?
- jenkins-pipeline - jq 在 Jenkins 管道中没有将输出保存到变量
- javascript - Bootstrap 5 - 移动菜单未打开
- java - javax.servlet.ServletException: Servlet [dispatcher] 的 Servlet.init() 抛出异常
- r - 具有许多变量的回归,但不足以证明使用 . 并减去不必要的变量
- visual-studio-code - VS Code 停止在方法/函数/对象/等上显示 InlayHints 类型