简体   繁体   English

带有oEmbed的“跨原始请求被阻止”吗?

[英]“Cross-Origin Request Blocked” with oEmbed?

As of today, when I try to embed a sound with SoundCloud oEmbed I get the following Javascript error: 从今天开始,当我尝试使用SoundCloud oEmbed嵌入声音时,出现以下Javascript错误:

Cross-Origin Request Blocked

Is this something I can fix on my server side or is this an issue which came up on SoundCloud's side? 这是我可以在服务器端解决的问题,还是SoundCloud方面出现的问题?

I found the issue. 我发现了问题。 SoundCloud must have accidentally updated their oEmbed URL. SoundCloud必须不小心更新了其oEmbed URL。 Their oembed API URL is now http://soundcloud.com/oembed instead of http://soundcloud.com/oembed.json . 他们的oembed API URL现在是http://soundcloud.com/oembed,而不是http://soundcloud.com/oembed.json The SoundCloud Javascript SDK still uses soundcloud.com/oembed.json (now a 404 page) for its oEmbed function. SoundCloud Javascript SDK的oEmbed函数仍使用soundcloud.com/oembed.json(现在是404页)。

It's probably a mistake that was made while updating their server configuration/security and we can only hope they fix this as soon as possible. 更新服务器配置/安全性时可能犯了一个错误,我们只能希望他们尽快解决此问题。

Indeed it was a bad routing change. 确实,这是一个错误的路由更改。 Apologies for the interruption! 抱歉打扰! Fix is now live. 现在修复已生效。

该问题似乎已经解决(2014年9月23日,欧洲中部时间下午3点)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM