Reputation: 27
I'm using Power BI REST API's to integrate or embed the reports created in Power BI. By using these API's i'm getting Access token, Embed token, Report Id, Data-set Id and Embed URL also but when i embed my report using J query Ajax then it gives me the pref-light error. So, please let me know how to solve this error. In addition of this i have Power BI Pro account. Below are the API's and screenshot of error.
Upvotes: 1
Views: 449
Reputation: 1391
See if relevant Got 400 error for pre-flight options CORS token request from OWIN-based WebAPI
Also, can you maybe check what is the response itself that is returned? what is there besides the 400? maybe some message?
Upvotes: 0