shopify_app 8.2.1 → 8.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1f97ef76b99ee420d03be252ee3e7afb91f9ecd
4
- data.tar.gz: cd48c126d28a75212a44647317aed7b8a63b632b
3
+ metadata.gz: 93440d005afce88a4646870516c40726b913cd0f
4
+ data.tar.gz: 5a7731dba7c7b5137260482d8dc6e9e54390b47f
5
5
  SHA512:
6
- metadata.gz: 60c658b34b6d6d1569b5ad624870dc2d0a22b0f3668d6d582e0e82fd927c58371e3a31056fbaedb4853aae84145492bddfceedb92b4360619028d45fcf17ca74
7
- data.tar.gz: 6b4b21362296c42e3940dbf572fce7da5f6746ef49385419f4e7a084ea8d7f500f97b2cfd548b1d9d167384f0441a52361270a53fc2790d746239a6f4d5dd1fa
6
+ metadata.gz: 989f10667b7db17df7836a1c7fcff04b6ed6fa26f6c6e23580d1905d02e1e4badd1c676da3b476b367ac9c9ee2c86d2dcfe3ceb08878eb308fa0f3fba471b3ef
7
+ data.tar.gz: 4324ad1083d794cf274275bb7064226dee041f9fd384d2c904f0bc178d47b61da97a01f26b2aac52976f47a59f336fbcc1e67d5ed5473a54a37be08e44395344
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 8.2.2
2
+ -----
3
+ * Changes how the ESDK concern allows iframes. Fixes an issue with the first request for some people
4
+
1
5
  8.2.1
2
6
  -----
3
7
  * Bugfix: Don't logout shops from `login_again_if_different_shop` when Rails
@@ -13,7 +13,7 @@ module ShopifyApp
13
13
 
14
14
  def set_esdk_headers
15
15
  response.set_header('P3P', 'CP="Not used"')
16
- response.default_headers.delete('X-Frame-Options')
16
+ response.headers.except!('X-Frame-Options')
17
17
  end
18
18
  end
19
19
  end
@@ -7,7 +7,7 @@ module ShopifyApp
7
7
  name.sub!(%r|https?://|, '')
8
8
 
9
9
  u = URI("http://#{name}")
10
- u.host && u.host.ends_with?(".#{ShopifyApp.configuration.myshopify_domain}") ? u.host : nil
10
+ u.host if u.host&.match(/^[a-z0-9][a-z0-9\-]*[a-z0-9]\.#{Regexp.escape(ShopifyApp.configuration.myshopify_domain)}$/)
11
11
  rescue URI::InvalidURIError
12
12
  nil
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = '8.2.1'
2
+ VERSION = '8.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.1
4
+ version: 8.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-28 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails