首页 > 解决方案 > 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 的跨域响应

我怎么能在我这边度过这个难关?

标签: jquerymailchimp

解决方案


推荐阅读