I'm trying to implement the following whitelisting in my project using $sceDelegateProvider
:
External resource not being loaded by AngularJs
The thing is everywhere I think it should go it keeps throwing errors and I believe I'm not implementing it correctly.
The code can be found here: https://github.com/festiveox/PartyRaptor
Basically, I want to be able to call {{vm.game.video}}
(which is a YouTube video URL provided by the user) to be called as the src inside iframe tags on /modules/games/client/views/view-game.client.view.html - like I'm doing with the image tag. I understand that for that I need to white-list or trust the URL source coming from the database, where should I put this code?