I have a react app that hosted by palantir-foundry and it can’t load videos because the content security policy, there are style, img ,connect, frame and script options but there isn’t media-src option.
The Err:
1 Refused to load media from ‘foundry-data-proxy/api/web/dataproxy/datasets/ri.foundry.main.dataset.7e2d7bdf-6a57-4400-ab09-f915f961e71c/views/master/tg-fateeh1965-3692-007e683fbc8fd47966d87acae70cc89f.mp4’ because it violates the following Content Security Policy directive: “media-src ‘self’ blob:”.
Thanks for flagging!
This is currently a missing functionality which we are exploring how fast can we add to the product.
One option to bypass this for now, if you have the Video on Foundry is to IFrame it in your application so the source would match the destination.
there is any expected time to add that to pruduct?
Did the suggested workaround worked for you?
(This might affect prioritization)
The workaround didn’t work well, its really important i need the ability to watch videos on production, i think that adding the media-src its the only solution.
We are releasing a fix for this and will allow adding media-src addition same as we do for image-src.
This should hit your stacks in the next few weeks.