Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

New Member

Rest API Call from Custom Visual

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 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?



New Member

You need to specify the RestAPI endpoint inside capabilities.json, Below is the code for your reference

"privileges": [
            "name": "WebAccess",
            "essential": true,
            "parameters": ["http://localhost:44353"]
            "name": "WebAccess",
            "essential": true,
            "parameters": ["http://localhost:8000"]


Can a custom visual do an API call and hold the response in memory? does the 30,000 limit apply in that case?

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.