Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

React/NodeJS App Spotify Auth Refused to connect to 'https://stats.g.doubleclick.net/j/collect ... '

React/NodeJS App Spotify Auth Refused to connect to 'https://stats.g.doubleclick.net/j/collect ... '

Device

Windows PC

 

Operating System

Windows 10

 

Browser

Chrome

 

My Question or Issue

Hi!

 

Having an issue with Spotify Auth on my app.

https://aim-beats-game.herokuapp.com/

 

Getting the following error after clicking the login button.

 

Refused to connect to 'https://stats.g.doubleclick.net/j/collect?t=dc&aip=1&_r=3&v=1&_v=j96&tid=UA-5784146-31&cid=162188041...' because it violates the following Content Security Policy directive: "connect-src 'self' https://*.spotify.com https://www.google-analytics.com https://*.ingest.sentry.io/".

 

The app is connecting to a NodeJS server I built which is using PassportJS's Spotify strategy to handle auth. Not quite sure where to go from here.

 

Any help would be appreciated.

 

Thanks!

error.PNG
Reply
1 Reply

hi, i encountered the same problem did you resolve it ?

 

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 5 years ago  in Social & Random