'Embed Power BI to webpage

I have published a Power BI model and would like to embed it to my website.

One working solution is to embed as an iframe, this works fine.

The problem arised, when access to the Power BI model, which is in the local Report Server, was restricted only to the IP of my server. That's to say, if it's requested from the backend, it would be reachable. But if it's called in the frontend (like in iframe), it would fail, as user IP is different.

As I understood, solution would be to call the Power BI model in the backend and send html code to the frontend.

Am I right? What would be the best solution?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source