Forum Discussion
Anonymous
6 years agoNot 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 e...
dm-p
6 years agoSuper 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