Sha256: a6cb385e13b9f17e6da02c2f24687bf5051d55ccb56643b1addc4402b8e6fa9c

Contents?: true

Size: 455 Bytes

Versions: 18

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

module ShopifyApp
  module EmbeddedApp
    extend ActiveSupport::Concern

    include ShopifyApp::FrameAncestors

    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

18 entries across 18 versions & 1 rubygems

Version Path
shopify_app-21.10.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.9.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.8.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.8.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.7.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.6.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.5.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.4.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.4.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.3.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.3.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.2.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.1.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.1.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-21.0.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-20.2.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-20.1.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-20.1.0 lib/shopify_app/controller_concerns/embedded_app.rb