I got a CORS error when Embedding a PowerBI dashboard.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://wabi-west-europe-b-primary-redirect.analysis.windows.net/powerbi/refresh/subscribe. (Reason: CORS request did not succeed).
This is due to POST /powerbi/refresh/subscribe that eventually gets canceled.
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
Note that these are all coming from MS server.
Any thoughts or why PowerBI had an error TokenExpired?