The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear community,
On a custom visual I am trying use a http post request by fetch to a logic app endpoint, and getting following error from the Console:
Refused to connect to 'https://xxx.logic.azure.com/xxx' because it violates the following Content Security Policy directive: "default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Following is the code from the react component of the visual:
handleClick = () => {
You got a 200 back. That's great.
So what exactly is your challenge?
The only think to do is to set the whitelisted web-urls in capabilities.json "privileges". Your own servers and all of the microsoft services as well.
Hi @pbn ,
The 200 I got back was a test with another visual from appsource, demonstrating that it is indeed possible to use fetch requests within custom visuals and sandboxed iframe.
You are very right, it was just a question of getting the privileges set right it terms of whitelisting, when I got the servers in the requests went straight through!
Thanks, I do not seem to find an actual answer that I can accept from you, can you provide one? 😉
Have a great day.
I really want to help you if I can. However, I don't understand your question. Where is your knowledge gap?