joerichsen
How to include Phoenix content in a Rails app?
I am in charge of a large Rails application and would like to use Phoenix for some of the new features.
This means that we often have to embed pages generated by Phoenix in the pages generated by Rails.
I am wondering what a good approach to do this is. There are several options:
- Use an iframe with the content from the Phoenix app.
- Use Nginx and SSI to “merge” the html from the Phoenix app and the Rails app
- Some solution I haven’t thought of

The iframe solution is a bit cumbersome when we for example want the iframe to trigger actions in the surrounding page (like showing a modal popup for example).
The SSI solution is nice from a integration standpoint, but I am a bit worried about the security (see https://medium.com/@shatabda/security-ssi-injection-what-how-fbce1dc232b9 for an example).
Does anyone have any advice with respect to 1 or 2 or maybe have another solution?
First Post!
dimitarvp
Have you checked Terraform – terraform v1.0.1?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









