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