I am new to power bi development and trying to achieve below scenario.
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?