soundcloud's 2.0 sdk works but 3.0 does not as of Oct 29th, 2015

好久不见. 提交于 2019-12-04 01:42:36

问题


I have a website, http://www.vertexshaderart.com, that was working fine until today. Suddenly, in Safari only, the XHR request initiated by calling

SC.get("/resolve", { url: someUrl } ...)

was failing. I checked a friend's webapp what was still working. The only difference was he's using the 2.0 sdk where as I was using the 3.0 sdk.

I switched to the 2.0 sdk and things started working again. Checking the headers sent the 3.0 sdk sends

http://api.soundcloud.com/resolve?url=someUrl&client_id=?????&format=json

where as the 2.0 sdk sends

http://api.soundcloud.com/resolve?url=someUrl&client_id=?????&format=json&_status_code_map[302]=200

The error in Safari is for the 3.0 SDK is

Failed to load resource: Request header field Accept-Encoding is not allowed by Access-Control-Allow-Headers

Is there a way to get the 3.0 sdk to work?

来源:https://stackoverflow.com/questions/33431256/soundclouds-2-0-sdk-works-but-3-0-does-not-as-of-oct-29th-2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!