The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
i have a problem when i use a browser different to Internet Explorer for receiving access_token.
In firefox i have this error:
Error: No access token was found for element. You must specify an access token directly on the element using attribute 'powerbi-access-token' or specify a global token at: powerbi.accessToken.
this is code:
var access_token="";
var settings = {
async: true,
crossDomain: true,
url: "https://login.windows.net/common/oauth2/token",
method: "POST",
data: "request "
dataType: "json"
}
$.ajax(settings).always(function (response) {
access_token=response.access_token;
No, i am using PowerBI API and i received the access_token with a ajax request.