This is for an elixir phoenix application. To reproduce my code, one would simply have to do
1.
mix phx.new hello --no-ecto
add an iframe which connects to an external website at lib/templates/page/index.html.heex
- and then
flyctl launch
if you run a server locally with
mix phx.server
you will find the iframe works and loads on the local server, but on the fly.io deployment it doesn’t.
I am coming from a data sci background and new to web dev, so I assume the solution is relatively simple but Im a bit lost as theres no logs or anything which I can check. I ASSUME the reason why the iframe does not load is because in the fly io deployment, there is some condition where iframes can not be loaded with content from external websites.
just wondering if anyone can point my in the correct direction of how to allow iframes from external websites to load with fly io deployments.
thank you for any and all help, and let me know if this question would better be asked somewhere else.