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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

fetch calls behavior depending on deployment model

Hi

How would a javascript fetch call executed by the custom visual behave, depending on:

  • Being executed from Power BI Desktop to a publicly available URL (I assume this works no problem)
  • Being executed from Power BI Desktop to a locally available URL (I assume this works no problem with the URL corresponding to an appropriate local network address)
  • Being executed from Power BI Web to a publicly available URL (I assume this works no problem)
  • Being executed from Power BI Web to a locally available URL (would it work since Power BI Web is running in a browser in the local network?)

 

Thanks

(Also, please let me know if I missed any deployment model possibility)

 
1 REPLY 1
dm-p
Super User
Super User

Hi @Anonymous ,

HTTP fetch requests work fine from inside the developer visual as long as your remote endpoint can accept requests from any domain. This is because the developer visual runs inside a sandboxed iframe with no domain of its own. Further reading: iframe reference, under the sandbox attribute. The only value enabled is allow-scripts; all others are disabled from the main window to keep the visual from interacting from the main window, except through the provided APIs.

Hopefully this gives you some ideas on how to proceed.

Regards,

Daniel





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

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors