<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OEmbed API missing CORS headers in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5225343#M2758</link>
    <description>&lt;P&gt;It's not possible to hit the oembed endpoint from client-side JS. Try running this in your browser console on any non-Spotify domain:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;await fetch('https://open.spotify.com/oembed?url=https://open.spotify.com/track/6fHxL22apYBSywdSSZlp6h').then(r =&amp;gt; r.json())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will get a CORS error. For reference, YouTube, SoundCloud, Vimeo have CORS-enabled oembed endpoints.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Jun 2021 23:11:02 GMT</pubDate>
    <dc:creator>cdrini</dc:creator>
    <dc:date>2021-06-20T23:11:02Z</dc:date>
    <item>
      <title>OEmbed API missing CORS headers</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5225343#M2758</link>
      <description>&lt;P&gt;It's not possible to hit the oembed endpoint from client-side JS. Try running this in your browser console on any non-Spotify domain:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;await fetch('https://open.spotify.com/oembed?url=https://open.spotify.com/track/6fHxL22apYBSywdSSZlp6h').then(r =&amp;gt; r.json())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will get a CORS error. For reference, YouTube, SoundCloud, Vimeo have CORS-enabled oembed endpoints.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 23:11:02 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5225343#M2758</guid>
      <dc:creator>cdrini</dc:creator>
      <dc:date>2021-06-20T23:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: OEmbed API missing CORS headers</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5264013#M3268</link>
      <description>&lt;P&gt;Hello @cdrini, thanks for reporting this bug.&lt;/P&gt;&lt;P&gt;Your issue should be resolved now, we have added CORS support to the "/oembed" endpoint.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 11:55:08 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5264013#M3268</guid>
      <dc:creator>kopiro</dc:creator>
      <dc:date>2021-09-22T11:55:08Z</dc:date>
    </item>
    <item>
      <title>Betreff: OEmbed API missing CORS headers</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5275667#M3385</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it still doesn't work for playlists. The following example gives the same error.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;await fetch('https://embed.spotify.com/oembed?url=https://open.spotify.com/playlist/5uHTCYBvcpQfP234BQwzqT').then(r =&amp;gt; r.json())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 13:16:32 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5275667#M3385</guid>
      <dc:creator>SWR3</dc:creator>
      <dc:date>2021-10-12T13:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: OEmbed API missing CORS headers</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5279381#M3418</link>
      <description>Awesome! Thank you for the fix, dev team &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 19 Oct 2021 02:34:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/OEmbed-API-missing-CORS-headers/m-p/5279381#M3418</guid>
      <dc:creator>cdrini</dc:creator>
      <dc:date>2021-10-19T02:34:05Z</dc:date>
    </item>
  </channel>
</rss>

