Soundcloud oEmbed endpoint returns 403 at some URLs

Soundcloud oEmbed endpoint works well with most links (like affee ), but returns 403 status with the following (valid) URL: knifepartyinc

What is wrong with the second URL?

+3
source share
1 answer

the owner of a SoundCloud track can disable all widgets. This is one of the big flags on the track edit page. In this case, oEmbed will not be able to return the insert code. Your application must have a defensive approach to deal with this. Just check if the answer is true before executing it in the DOM.

+8
source

Source: https://habr.com/ru/post/1235046/


All Articles