You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we integrate rails application by iframe, the browser console will report "X-Frame-Options to SAMEORIGIN by default" error, so we should let rails application ignore iframe check in controller.
before_action :allow_iframe_requests
private
def allow_iframe_requests
response.headers.delete('X-Frame-Options')
end
The text was updated successfully, but these errors were encountered:
When we integrate rails application by iframe, the browser console will report "X-Frame-Options to SAMEORIGIN by default" error, so we should let rails application ignore iframe check in controller.
The text was updated successfully, but these errors were encountered: