Skip to main content
Notice removed Draw attention by Questifer
Bounty Ended with 343_Guilty_Spark's answer chosen by Questifer
deleted 117 characters in body
Source Link
Questifer
  • 1.1k
  • 3
  • 19
  • 48

I have a rails 4 application that loads an iframe in one of the views. I'm testing my app on staging using safari (it works on Chrome and Firefox) and I'm experiencing an X-Frame-Options rejection error. Inside of my developer tools in Safari, when I load the iFrame view I am receiving:

Refused to display 'https://demo.docusign.net/Signing/(X(1)S(xxxxx))/SessionTimeout.aspx?fi=xxxx' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. 

I don't receive this error in Firefox or Chrome.

My rails code is as follows:

# application.rb config.action_dispatch.default_headers = { 'X-Frame-Options' => 'ALLOWALL' } # application_controller.rb def allow_iframe response.headers.delete('X-Frame-Options') end # iframe controller after_filterbefore_filter :allow_iframe, only: [:show, :signing_response] 

Any guidance on this issue would be appreciated.

I have a rails 4 application that loads an iframe in one of the views. I'm testing my app on staging using safari (it works on Chrome and Firefox) and I'm experiencing an X-Frame-Options rejection error. Inside of my developer tools in Safari, when I load the iFrame view I am receiving:

Refused to display 'https://demo.docusign.net/Signing/(X(1)S(xxxxx))/SessionTimeout.aspx?fi=xxxx' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. 

I don't receive this error in Firefox or Chrome.

My rails code is as follows:

# application.rb config.action_dispatch.default_headers = { 'X-Frame-Options' => 'ALLOWALL' } # application_controller.rb def allow_iframe response.headers.delete('X-Frame-Options') end # iframe controller after_filter :allow_iframe, only: [:show, :signing_response] 

Any guidance on this issue would be appreciated.

I have a rails 4 application that loads an iframe in one of the views. I'm testing my app on staging using safari (it works on Chrome and Firefox) and I'm experiencing an X-Frame-Options rejection error. Inside of my developer tools in Safari, when I load the iFrame view I am receiving:

Refused to display 'https://demo.docusign.net/Signing/(X(1)S(xxxxx))/SessionTimeout.aspx?fi=xxxx' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. 

I don't receive this error in Firefox or Chrome.

My rails code is as follows:

# application_controller.rb def allow_iframe response.headers.delete('X-Frame-Options') end # iframe controller before_filter :allow_iframe, only: [:show, :signing_response] 

Any guidance on this issue would be appreciated.

Notice added Draw attention by Questifer
Bounty Started worth 50 reputation by Questifer
edited tags
Link
Andrew
  • 4.5k
  • 5
  • 36
  • 75
Source Link
Questifer
  • 1.1k
  • 3
  • 19
  • 48

Rails 4 application not overriding X-Frame-Options from SAMEORIGIN

I have a rails 4 application that loads an iframe in one of the views. I'm testing my app on staging using safari (it works on Chrome and Firefox) and I'm experiencing an X-Frame-Options rejection error. Inside of my developer tools in Safari, when I load the iFrame view I am receiving:

Refused to display 'https://demo.docusign.net/Signing/(X(1)S(xxxxx))/SessionTimeout.aspx?fi=xxxx' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. 

I don't receive this error in Firefox or Chrome.

My rails code is as follows:

# application.rb config.action_dispatch.default_headers = { 'X-Frame-Options' => 'ALLOWALL' } # application_controller.rb def allow_iframe response.headers.delete('X-Frame-Options') end # iframe controller after_filter :allow_iframe, only: [:show, :signing_response] 

Any guidance on this issue would be appreciated.