I'm trying to implement automatic embedding of spotify tracks/albums etc in a blog site.
But it is being blocked.
When I try this at home:
curl -v "https://open.spotify.com/episode/7makk4oTQel546B0PZlDM5"
I get the JSON returned just fine. It includes a JSON object containing the html to make this:
https://open.spotify.com/episode/7makk4oTQel546B0PZlDM5
If I try it from an amazon aws instance, I get a 403 from spotify.
Should I be trying to get the client to do the embed request? I suspect that will fail with XSS issues.
Does spotify dislike websites doing embed lookups?
Info and example URL taken from here:
https://developer.spotify.com/documentation/embeds/references/oembed-api/#/operations/oembed