<?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: Spotify API redirect issue on Safari in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6706518#M16917</link>
    <description>&lt;P&gt;We're seeing the same exact issue for private safari browser&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 14:22:36 GMT</pubDate>
    <dc:creator>yourfriends</dc:creator>
    <dc:date>2025-02-11T14:22:36Z</dc:date>
    <item>
      <title>Spotify API redirect issue on Safari</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6296230#M14879</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I’ve built an app using the Spotify API’s Authorization Code Flow. The app works on Firefox, Chrome, and Brave. However, I’m encountering an issue on Safari.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;After I have successfully logged in to Spotify, instead of being redirected back to my app, I’m taken to &lt;A href="https://accounts.spotify.com/en/status" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/en/status&lt;/A&gt;&amp;nbsp;(see attached photo).&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Has anyone else experienced this issue on Safari, or have any ideas on what might be causing it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the URL for my app in case anyone wanted to test it -&amp;nbsp;&lt;A href="https://listening-stats-jn.netlify.app/" target="_blank" rel="noopener"&gt;https://listening-stats-jn.netlify.app/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI someone else asked a similar question &lt;A href="https://community.spotify.com/t5/Accounts/Spotify-API-doesn-t-always-redirect-to-my-app-after-successful/td-p/6219485" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&amp;nbsp;but there was no solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 00:59:54 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6296230#M14879</guid>
      <dc:creator>jjacoba</dc:creator>
      <dc:date>2024-08-28T00:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API redirect issue on Safari</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6537254#M15605</link>
      <description>&lt;P&gt;Hi! Did you find a solution for this? I'm currently facing the same issue with the authentication flow on Safari&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 10:10:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6537254#M15605</guid>
      <dc:creator>NSueiro</dc:creator>
      <dc:date>2024-11-26T10:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API redirect issue on Safari</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6688163#M16822</link>
      <description>&lt;P&gt;Also would like an answer to this problem. Experiencing it myself.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2025 04:04:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6688163#M16822</guid>
      <dc:creator>EardrumValleyRecords</dc:creator>
      <dc:date>2025-02-02T04:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API redirect issue on Safari</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6706518#M16917</link>
      <description>&lt;P&gt;We're seeing the same exact issue for private safari browser&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 14:22:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6706518#M16917</guid>
      <dc:creator>yourfriends</dc:creator>
      <dc:date>2025-02-11T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API redirect issue on Safari</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6711026#M16943</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;Spotify API redirect issue on Safari&lt;/STRONG&gt; is likely due to &lt;STRONG&gt;Safari’s ITP (Intelligent Tracking Prevention)&lt;/STRONG&gt;, which blocks third-party cookies and can interfere with OAuth authentication.&lt;/P&gt;&lt;P&gt;To resolve this issue in your &lt;A href="https://www.nimbleappgenie.com/blogs/best-practices-for-api-development/" target="_self"&gt;&lt;STRONG&gt;API development&lt;/STRONG&gt;&lt;/A&gt;, consider:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":keycap_1:"&gt;1️⃣&lt;/span&gt; &lt;STRONG&gt;Ensure the Redirect URI is Whitelisted&lt;/STRONG&gt; – Double-check that the redirect URI is correctly registered in your &lt;STRONG&gt;Spotify Developer Dashboard&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":keycap_2:"&gt;2️⃣&lt;/span&gt; &lt;STRONG&gt;Use SameSite=None; Secure for Cookies&lt;/STRONG&gt; – If your authentication relies on cookies, ensure they are properly set for cross-site requests.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":keycap_3:"&gt;3️⃣&lt;/span&gt; &lt;STRONG&gt;Enable PKCE Flow for Authentication&lt;/STRONG&gt; – This improves security and helps prevent issues with Safari’s privacy restrictions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":keycap_4:"&gt;4️⃣&lt;/span&gt; &lt;STRONG&gt;Use an In-App Browser or Alternative Authentication&lt;/STRONG&gt; – If the issue persists, try handling authentication via a different browser or embedded web view.&lt;/P&gt;&lt;P&gt;Have you checked Safari’s developer console (Cmd + Option + I) for any CORS or cookie-related errors? Let us know what you find!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 12:00:14 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6711026#M16943</guid>
      <dc:creator>31znm652tk3ovrlv7rsp</dc:creator>
      <dc:date>2025-02-13T12:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API redirect issue on Safari</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6715106#M16966</link>
      <description>&lt;P&gt;Hi, here's a simple summary of the problem. First, we open the Spotify authentication page. Next, the user logs in to Spotify. Finally, Spotify should redirect back to the redirect uri we specified. The final part works in all browsers except private safari, which doesn't redirect on mobile or desktop. If you're already logged in then the redirect works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#1 The uri is whitelisted since it works properly when not using private mode in a safari browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#2 Our cookies are using the specified value, but this appears unrelated (at least on our side) since Spotify doesn't redirect back to our website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#3 We didn't attempt this, but I believe this shouldn't have an impact either because the only part not working is Spotify redirecting the page back to us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#4 Yes, we're supporting in-app authentication as well. However, if a user is on a desktop mac then the mobile app isn't an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't see any noticeable errors in the developer console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 15:57:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/6715106#M16966</guid>
      <dc:creator>yourfriends</dc:creator>
      <dc:date>2025-02-14T15:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify API redirect issue on Safari</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/7008417#M18133</link>
      <description>&lt;P&gt;The problem is quite strange because the redirection works if you're already logged in to Spotify in the browser that you are using. It's only when you have to log in manually entering your credentials when it doesn't work. The log in works, but after you're logged in Spotify "forgets" that it should redirect you back to the specified "Redirect URI".&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 10:14:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-API-redirect-issue-on-Safari/m-p/7008417#M18133</guid>
      <dc:creator>luis6674</dc:creator>
      <dc:date>2025-06-13T10:14:48Z</dc:date>
    </item>
  </channel>
</rss>

