Created
March 25, 2015 15:10
-
-
Save dannyvassallo/04b04a400edcd40745a2 to your computer and use it in GitHub Desktop.
Put Rails App in iFrame on Fangate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Rails 4 App | |
application.rb: | |
config.action_dispatch.default_headers.merge!({'X-Frame-Options' => 'ALLOWALL'}) | |
In Fangate: | |
<style> | |
a#footer-branding.paid{ | |
display:none !important; | |
} | |
#page{ | |
width: 100% !important; | |
padding: 0 !important; | |
height: 4300px !important; | |
} | |
#page-content{ | |
width: 100% !important; | |
} | |
iframe{ | |
margin: -5px auto 0 auto; | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
width: 100%; | |
height: 4300px !important; | |
} | |
</style> | |
<iframe frameBorder="0" src="https://drsday.herokuapp.com/"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment