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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Ammarb
Frequent Visitor

Embedding report error

Hello all ,

 

 I'm having a powerBi pro licence also , I'm in the middle of embedding report in my wordpress website so I've used this plugin https://wordpress.org/plugins/embed-power-bi/

 

also in testing with Microsoft Power BI Embedded Playground .. it's working

But I'm getting this error    DOMException: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': 'Bearer <br />

"....." is not a valid HTTP header field value. at setGETRequestHeaders

so how this could be solved ?

 

Thank you

7 REPLIES 7
h4n1234
Frequent Visitor

Hi - I am having the same issue. Only this is it works for 6 WordPress sites - I have built 2 more and I am getting the above message. 

Anonymous
Not applicable

Hi @Ammarb,

Have you tested your embed token and id on the playground or only test to embed the sample contents to WordPress?

If this is a case, I'd like to suggest you check azure account and permission settings to confirm if you do not meet for prerequisites.

power-bi-embedded wordpress 

Regards,

Xiaoxin Sheng

nickyvv
Most Valuable Professional
Most Valuable Professional

So it's not entirely clear from you question:
- Are you using Power BI Embedded (with a E-SKU license)
- Or are you Publishing to Web and then embedding in your site?


Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


What do you mean by ( a E-SKU license)?

 

I only have a Power BI Pro license and I've given permission inside the Azure Active Directory
By creating a client secret ... etc

not the second option

Anonymous
Not applicable

HI @Ammarb,

According to your description, it seems like you only have a Pro license.

AFAIK, power bi embedded feature requires a premium license and corresponding azure permissions. (for sample report you test on power bi playground, they are shared from a premium tenant with corresponding permissions and tokens )

Embedded analytics with Power BI 

What is Power BI Embedded? 

Power BI Premium FAQ 

Regards,

Xiaoxin Sheng

@AnonymousThe API permissions are already granted as below s.JPG

 

Anonymous
Not applicable

Hi @Ammarb,

If your scenario suitable all prerequisites and still not works, it should related to backend verify requests. I'd like to suggest you open a support ticket for further support.

submit a support ticketsubmit a support ticket

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.