Sha256: 7e48b217ed07c990f94e8275ae42c14810a6bb2cd98cd9e9da03bb684857721e

Contents?: true

Size: 382 Bytes

Versions: 43

Compression:

Stored size: 382 Bytes

Contents

module ShopifyApp
  module EmbeddedApp
    extend ActiveSupport::Concern

    included do
      if ShopifyApp.configuration.embedded_app?
        after_action :set_esdk_headers
        layout 'embedded_app'
      end
    end

    private

    def set_esdk_headers
      response.set_header('P3P', 'CP="Not used"')
      response.headers.except!('X-Frame-Options')
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
shopify_app-13.0.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.7 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.6 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.5 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.4 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.3 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.2 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-12.0.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.7.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.7.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.6.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.5.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.5.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.4.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.3.2 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.3.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.3.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.2.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-11.1.0 lib/shopify_app/controller_concerns/embedded_app.rb