Module: BookingSync::Engine::Helpers

Extended by:
ActiveSupport::Concern
Defined in:
lib/bookingsync/engine/helpers.rb

Overview

General helpers related to integrating applications with BookingSync

Instance Method Summary collapse

Instance Method Details

#allow_bookingsync_iframeObject (private)

Clears the X-Frame-Options header so that the application can be embedded in an iframe. This is required for loading applications in the BookingSync app store.

This should set ALLOW-FROM, but it's not supported in Chrome and Safari.


12
13
14
# File 'lib/bookingsync/engine/helpers.rb', line 12

def allow_bookingsync_iframe
  response.headers['X-Frame-Options'] = '' if ::BookingSync::Engine.embedded
end