Forum Discussion
burgerboyy
3 years agoNew Member
Privileges settings for Power BI visual not working?
Hi, I'm currently building a custom visual that makes use of the google maps API - as such, I've set privileges in the capabilities.json to allow for WebAccess. However, whenever testing my visua...
dpzafra
2 years agoNew Member
Hi, Do you solved the problem, I have a similar problem?
I build a custom visual that call a external api with a interval, this is the code:
const response = await fetch("http://localhost:3000",{
method: 'POST',
headers: {
'content-type': 'application/json;charset=UTF-8',
},
body: JSON.stringify({
data: column_id
}),
});
Also add in capabilities.json :
"privileges": [
{
"name": "WebAccess",
"essential": true,
"parameters": ["http://localhost:3000"]
}
It works in development mode, but when i build and package the solution it doesn´t in powerbi desktop.
The api is program in node with cors enable and listening in port 3000, http:
app.use(cors({
origin: '*'
}));
Thank you for any help.