Sha256: eb31f2b49e12763e8cd1966e36ec05888ba6c92754901b67b01ddf43b40104ee
Contents?: true
Size: 374 Bytes
Versions: 2
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true module ShopifyApp module FrameAncestors extend ActiveSupport::Concern included do content_security_policy do |policy| policy.frame_ancestors(-> do domain_host = current_shopify_domain || "*.myshopify.com" "https://#{domain_host} https://admin.shopify.com;" end) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shopify_app-20.1.1 | lib/shopify_app/controller_concerns/frame_ancestors.rb |
shopify_app-20.1.0 | lib/shopify_app/controller_concerns/frame_ancestors.rb |