Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Everyone,
I am new to power bi development and trying to achieve below scenario.
I am trying to make a REST API call through the Custom Visual created in javascript. But unable to perform the action successfully.
I can see below error in chrome dev tools console, once my custom visual appears in the report:
Refused to connect to 'https://xxxxxxxxxx/Data.json' because it violates the following Content Security Policy directive: "default-src https://app.powerbi.com data: blob: 'unsafe-inline' 'unsafe-eval'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Is it possible to make a restful api within the limits of Custom Visual? or if there's another appropriate method of achieving this?
Thanks,
Zaheer
Hi,
You need to specify the RestAPI endpoint inside capabilities.json, Below is the code for your reference :
Can a custom visual do an API call and hold the response in memory? does the 30,000 limit apply in that case?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |