我正在使用cloudinary服务在我的反应应用程序中显示图像,方法是使用与TS一起使用的React SDK v2的新测试版。我正在使用文档中描述的功能,但作为回报我有
ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200
这是我的代码:
const cld = new Cloudinary({
cloud: {
cloudName: "mycloudname",
}
});
const myImage = cld.image("sample");
我是 CORS 使用的新手,所以我可能遗漏了一些东西,但在新的 SDK 中,我找不到应该添加标题以允许 CORS 的任何地方。
有人能帮我吗?