Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
marcobaciga
Helper I
Helper I

Error receive access token with browser different IE

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; 

 

 

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@marcobaciga

 

Were you playing with any Power BI embedded demo? Could you post the whole page?

No, i am using PowerBI API and i received the access_token with a ajax request.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.