Search code examples
herokumaintenance-mode

Links on Heroku maintenance pages don't work


When I put up our maintenance page, I include some links to our contact us, a link to our twitter feed for more details, etc. However, I just noticed that (at least in chrome) the links don't open. It's clearly due to the page being hosted from within an iframe.

The following error shows up in the console: Refused to display document because display forbidden by X-Frame-Options.

We're hosting our maintenance page on S3, as heroku suggests. This limits our ability to modify headers, etc. Any suggestions on how to get these links to work?

Thanks in advance


Solution

  • I just encountered the same issue. I worked around it using target='_blank'.