<?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 Re: Token API CORS error in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218334#M2660</link>
    <description>&lt;P&gt;Same thing here. It appears it’s only the token api. The rest of the web api works fine as long as you already have a valid token.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here’s the link to my post:&amp;nbsp;&lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Refresh-Token-API-returning-CORS-errors/td-p/5217897" target="_blank"&gt;https://community.spotify.com/t5/Spotify-for-Developers/Refresh-Token-API-returning-CORS-errors/td-p/5217897&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jun 2021 15:32:04 GMT</pubDate>
    <dc:creator>holamau</dc:creator>
    <dc:date>2021-06-05T15:32:04Z</dc:date>
    <item>
      <title>Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218186#M2649</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Hi.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I am building a web application consuming Spotify API.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The feature is simply searching for a song which had worked fine until yesterday.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;However, all of a sudden I was not able to get a access token from the API server any more - which lead the search request not to work as well. The error message is as below.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;Access to XMLHttpRequest at '&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;' from origin 'https://(my site name)' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I just cannot understand why this happens although any line of my codes has not been changed at all.&amp;nbsp;Please&amp;nbsp;give me some possible solutions and updates. Thanks.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Best,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Kim.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 10:22:17 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218186#M2649</guid>
      <dc:creator>user-removed</dc:creator>
      <dc:date>2021-06-05T10:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218249#M2651</link>
      <description>Hi!&lt;BR /&gt;Me and a couple of others have experienced the same problem.&lt;BR /&gt;I described it here:&lt;BR /&gt;&lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Refresh-Token-API-returning-CORS-errors/td-p/5217897" target="_blank"&gt;https://community.spotify.com/t5/Spotify-for-Developers/Refresh-Token-API-returning-CORS-errors/td-p/5217897&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It looks like we have the exact same problem. Lets hope this gets fixed soon &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Sat, 05 Jun 2021 11:57:40 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218249#M2651</guid>
      <dc:creator>amario</dc:creator>
      <dc:date>2021-06-05T11:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218278#M2654</link>
      <description>hi i am having the same issue. Did you guys figure it out yet?</description>
      <pubDate>Sat, 05 Jun 2021 12:50:38 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218278#M2654</guid>
      <dc:creator>user-removed</dc:creator>
      <dc:date>2021-06-05T12:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218300#M2655</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;I’ve sent an inquiry to Spotify team but no updates yet. I’ll let you know here when I get the reply.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 13:54:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218300#M2655</guid>
      <dc:creator>user-removed</dc:creator>
      <dc:date>2021-06-05T13:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218331#M2658</link>
      <description>&lt;P&gt;The same issue, the code's been working for at least 2 months and yesterday all of a sudden Spotify started throwing this CORS error. The code is untouched so not sure what changed.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 15:27:35 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218331#M2658</guid>
      <dc:creator>skaz_fanatsky</dc:creator>
      <dc:date>2021-06-05T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218334#M2660</link>
      <description>&lt;P&gt;Same thing here. It appears it’s only the token api. The rest of the web api works fine as long as you already have a valid token.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here’s the link to my post:&amp;nbsp;&lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Refresh-Token-API-returning-CORS-errors/td-p/5217897" target="_blank"&gt;https://community.spotify.com/t5/Spotify-for-Developers/Refresh-Token-API-returning-CORS-errors/td-p/5217897&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 15:32:04 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218334#M2660</guid>
      <dc:creator>holamau</dc:creator>
      <dc:date>2021-06-05T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218355#M2663</link>
      <description>&lt;P&gt;Thanks. Please keep us posted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 16:27:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218355#M2663</guid>
      <dc:creator>holamau</dc:creator>
      <dc:date>2021-06-05T16:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218361#M2664</link>
      <description>&lt;P&gt;My app worked for weeks in this way and I'm getting this error too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that Spotify want you to ask for tokens from server to server, and not from the client.&lt;/P&gt;&lt;P&gt;If they don't fix this issue, I think we should just set up a simple Node/Express server and send the Http request from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mystery is that I have been able to ask for token via Ajax for weeks and it always worked until now.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 16:47:52 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218361#M2664</guid>
      <dc:creator>fra-mstr</dc:creator>
      <dc:date>2021-06-05T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218507#M2669</link>
      <description>&lt;P&gt;Same issue here. Built a project in recent months that uses Spotify's API and it suddenly doesn't work anymore. Subscribing.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 02:02:49 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218507#M2669</guid>
      <dc:creator>neveroriginal</dc:creator>
      <dc:date>2021-06-06T02:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218827#M2671</link>
      <description>&lt;P&gt;This morning the api started working as expected on its own. No code changes at all have gone in and the full functionality on my web app is working now.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I’d love to hear from the Spotify team about what happened.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 16:24:42 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218827#M2671</guid>
      <dc:creator>holamau</dc:creator>
      <dc:date>2021-06-06T16:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218834#M2672</link>
      <description>&lt;P&gt;The exact same issue, hope it gets looked at soon&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 16:45:46 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218834#M2672</guid>
      <dc:creator>skaz_fanatsky</dc:creator>
      <dc:date>2021-06-06T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218835#M2673</link>
      <description>&lt;P&gt;Looks like it got addressed… no errors this morning for me. With no code changes in my end.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 16:47:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218835#M2673</guid>
      <dc:creator>holamau</dc:creator>
      <dc:date>2021-06-06T16:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218843#M2674</link>
      <description>&lt;P&gt;Thanks for reporting this, @user-removed. Are you still seeing the issue now? If so, it would be great if you can share a link to your app, and information about which browser you're using.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 17:16:06 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218843#M2674</guid>
      <dc:creator>spotifyjosh</dc:creator>
      <dc:date>2021-06-06T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218845#M2675</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I this morning everything seem to get back to normal at least on my web app... tested in the external public web app that I have and also through localhost with none of the issues happening over the last two days or so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are wondering if there was probably something on the API's end that caused these errors to start happening because as daniel_kim mentioned, the errors started happening without changes on our end.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 17:26:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5218845#M2675</guid>
      <dc:creator>holamau</dc:creator>
      <dc:date>2021-06-06T17:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5219258#M2680</link>
      <description>Just did a quick test and it seems to be working for me now as well. Thank you.</description>
      <pubDate>Mon, 07 Jun 2021 16:19:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5219258#M2680</guid>
      <dc:creator>nightbreak</dc:creator>
      <dc:date>2021-06-07T16:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5256121#M3166</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;I am currently working on a web app and I've just started expereincing this problem this past week. The address for my website is&amp;nbsp;&lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/td-p/5218186" target="_blank"&gt;https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/td-p/5218186&lt;/A&gt;. The web app was working fine a few weeks ago, but I've been getting CORS error recently. I am hoping to get some ingisght from you on how to fix such error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 11:52:40 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5256121#M3166</guid>
      <dc:creator>jasuke75</dc:creator>
      <dc:date>2021-09-04T11:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5410089#M5125</link>
      <description>&lt;P&gt;Hi, I am receiving this same issue. Is there any fix to this? Seems like all replies are speculative here.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 00:23:04 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5410089#M5125</guid>
      <dc:creator>musicguy11232</dc:creator>
      <dc:date>2022-07-27T00:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Token API CORS error</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5463459#M7159</link>
      <description>&lt;P&gt;So many people with the problem and no feedback to help others.&amp;nbsp;I am also experiencing the error but there is no apparent solution.&lt;BR /&gt;&lt;BR /&gt;Edit:&amp;nbsp;The solution for me was to do the redirect with a &amp;lt;a href="/connect/spotify"&amp;gt; directly, as I was previously doing a redirect with my SPA and that caused the error.&lt;BR /&gt;&lt;BR /&gt;More info here:&amp;nbsp;&lt;A href="https://stackoverflow.com/a/28629866/13522473" target="_blank"&gt;https://stackoverflow.com/a/28629866/13522473&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 23:14:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-API-CORS-error/m-p/5463459#M7159</guid>
      <dc:creator>Zontir</dc:creator>
      <dc:date>2022-11-27T23:14:44Z</dc:date>
    </item>
  </channel>
</rss>

