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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bellait123
New Member

Power BI Embed Dashboard - no data shown: CORS Error for subscribe

Hi,


I have an error Embedding Power BI dashboard. The tiles show up but the data is not.

It has a CORS Error.

 

OPTIONS https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe

 

Response: 200


Access-Control-Allow-Headers: Accept,Content-Type,Authorizat…-PowerBI-TryLoadHomeDashboard
Access-Control-Allow-Methods: POST
Access-Control-Allow-Origin: https://app.powerbi.com
Access-Control-Expose-Headers: X-PowerBI-Error-Info,X-PowerBI-Error-Details
Access-Control-Max-Age: 300
 

POST https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe

Response: 401

 

Access-Control-Allow-Origin: https://app.powerbi.com
Access-Control-Expose-Headers: X-PowerBI-Error-Info,X-PowerBI-Error-Details
Cache-Control: no-cache, no-store, must-revalidate
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-PowerBI-Error-Info: TokenExpired

 

I am not sure why the error info says TokenExpired when the app has just started.

 

Any ideas?

2 REPLIES 2
TedPattison
Employee
Employee

Are you sure it is a CORS error? From looking at the error info you posted, my guess is that you are using an access token that is over 60 minutes old which has expired. How often are you refreshing the access token?

bellait123
New Member

Hi,


I have an error Embedding Power BI dashboard. The tiles show up but the data is not.

It has a CORS Error.

 

OPTIONS https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe

 

Response: 200


Access-Control-Allow-Headers: Accept,Content-Type,Authorizat…-PowerBI-TryLoadHomeDashboard
Access-Control-Allow-Methods: POST
Access-Control-Allow-Origin: https://app.powerbi.com
Access-Control-Expose-Headers: X-PowerBI-Error-Info,X-PowerBI-Error-Details
Access-Control-Max-Age: 300
 

POST https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe

Response: 401


Access-Control-Allow-Origin: https://app.powerbi.com
Access-Control-Expose-Headers: X-PowerBI-Error-Info,X-PowerBI-Error-Details
Cache-Control: no-cache, no-store, must-revalidate
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-PowerBI-Error-Info: TokenExpired

 

I am not sure why the error info says TokenExpired when the app has just started.

 

Any ideas?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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