SQLTerminal.app
now available

XPath.app
now available
Want fresh tech tips in your inbox?

How To Enable IFrame Support on Heroku with Ruby on Rails and Sinatra

       

This actually has more to do with Rails and/or Sinatra than it does with Heroku. You have to enable IFrame support in your headers explicitly.

With Rails you can add this to your config/application.rb file


config.action_dispatch.default_headers = {
    'X-Frame-Options' => 'ALLOWALL'
}

In Sinatra you add this declaration in the configure block


configure do
    set :protection, except: [:frame_options]
end
Tagged w/ #ruby on rails #sinatra #iframe #heroku

Apps I've Built

XPath Expression Editor
Practice and improve your XPath skills with XPath Editor
Click to buy on the App Store
Photo Location Changer
Easily change the location on your photos and videos
Click here for more info about the app
Photo Date Changer
Easily change the dates and times on your photos and videos
Click here for more info about the app
VocabReminder
English dictionary with notifications so you won't forget what you're studying!
Click here for more info about the app
VocabQuiz
The app that quizzes and scores you on your vocabulary!
Click here for more info about the app