Forum Discussion

bellait123's avatar
bellait123
New Member
7 years ago

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

  • 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?

  • TedPattison's avatar
    TedPattison
    Icon for Microsoft Employee rankMicrosoft 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?