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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
kaylakirzinger
Regular Visitor

Web.Contents won't connect anonymously but also won't allow us to use Basic auth

We have an API for which the basic auth credentials need to be passed as a header. Power BI refuses to connect automatically to ANY part of the web data source URL so we are essentially stuck unable to connect.

Here is what has been attempted:

1) Pass authorization header in web.contents, put anonymous as data source settings >> this fails because power BI says it can't connect anonymously (despite very much being able to hit at least the base URL of the call anonymously in browser).

2) Pass authorization header in web.contents, put basic as data source settings >> this fails because Power BI says we can't use both basic auth and a header

3) remove auth from header, pass only in power BI data source settings >> this causes the API to 400 error on a call that is otherwise successful in a REST client

Please assist. I have no idea why Power BI is so god awful with REST APIs in the year 2023 when almost everything is a REST API but Microsoft needs to catch this up.

 

2 REPLIES 2
kaylakirzinger
Regular Visitor

Thank you - the first one is not relevant because I have tried relative path already, the second one is for a POST not a GET and I have tried deleting global data source settings (which is suggested there) and it did not help. The last one suggests using anonymous as the solution which is not working for me. Thanks for the articles but none of the address this specific issue unfortunately.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors