Sha256: 597c741d8d56a7a455662bd8f6b48a518d1f46a5ec9a28e97fa9c13d25b3b767

Contents?: true

Size: 415 Bytes

Versions: 7

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
shopify_app-20.0.2 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-20.0.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-20.0.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-19.1.0 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-19.0.2 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-19.0.1 lib/shopify_app/controller_concerns/embedded_app.rb
shopify_app-19.0.0 lib/shopify_app/controller_concerns/embedded_app.rb