I have a built a Music Player Component with ember consuming the SoundCloud Api
Suddenly in Chrome i start getting this error notification in my console anytime i play a song in my application plus the songs does not play.
See the error
Report Only] Refused to connect to 'http://ift.tt/1XT3u3Y…fe493d321fb2a6a96186dcb97beab08f3cea5ad8b42d543c3edc7371f0eb5b2b00ba96395e' because it violates the following Content Security Policy directive: "connect-src 'self' data: cf-media.sndcdn.com ws://localhost:35729 ws://0.0.0.0:35729 http://ift.tt/1HbOW6Y".
It is complaining about the "connect-src 'self' data: cf-media.sndcdn.com ws://localhost:35729 ws://0.0.0.0:35729 http://ift.tt/1HbOW6Y".*"
This is because after bit of research i have modified in environment.js
the content security policy like this
contentSecurityPolicy: {
// 'connect-src': "'self' data: http://ift.tt/1XT3u40",
'connect-src': "'self' data: cf-media.sndcdn.com",
},
Before my change the problem was the same and this was the console log error
So my question is, how can i give these permission in order to not violate the Content Security Policy directive for 'connect-src'
? What other action have i to take now?
Again the problem is only in Chrome
Aucun commentaire:
Enregistrer un commentaire