我正在使用JSONP收到此消息:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.instagram.com/oembed/?url=https%3A%2F%2Fwww.instagram.com%2Fp%2Flgg4N5Q5rh&format=json&maxwidth=500&embed=widget&width=1 with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details.
,并且没有JSONP:
"Access to XMLHttpRequest at 'https://api.instagram.com/oembed/?url=https%3A%2F%2Fwww.instagram.com%2Fp%2Flgg4N5Q5rh&format=json&maxwidth=500&embed=widget&width=1' from origin 'https://fiddle.jshell.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
这是我的jsfiddle
如果我们在浏览器https://api.instagram.com/oembed/?url=https%3A%2F%2Fwww.instagram.com%2Fp%2Flgg4N5Q5rh&format=json&maxwidth=500&embed=widget&width=1中打开网址,就会看到有数据