Embed Grafana dashboard in web application

What settings needed for proxy, can you please explain…I was able to embed via iframe. But is asking for login credentials . Is it possible to.load dashboard via server side I.e using API token login and getting html response and load that in front end.Below settings have been configured. How to handle this in js or server side. User should not relogin again to grafana.once authorized in the web app, he should be able to see the dashboard. At the same time, we can’t expose the dashboard to anonymous user

enabled = true
header_name = X-WEBAUTH-USER
header_property = username
auto_sign_up = true