Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Got a question or want to chat about a topic? Let's talk!
Rails.application.configure do config.content_security_policy do |policy| policy.default_src :self policy.frame_ancestors 'self', "*" endend
resources :events do resources :questions, shallow: true end
You can do a search of episodes that reference turbo_frame_tags with code:turbo_frame_tag as the search params. https://www.driftingruby.com/episodes?query%5Bname%5D=code%3Aturbo_frame_tag
I found this Stackoverflow article about the topic https://stackoverflow.com/questions/67561924/ruby-on-rails-allow-embedding-of-your-website-in-other-sites-using-frame-ancesto and it appears that the "new" way of doing it is by overloading a Content Security Policy.
I ended up with the following content_security_policy.rb file
You can also decide to not override the property on a case by case (controller level).
I still have one issue: making it work with nested routes
But I will get something working at some point.