Skip to content

Commit f3ef7bd

Browse files
committed
Add support for trusted Shopify domain .shop.dev
1 parent ef63ee3 commit f3ef7bd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/shopify_app/utils.rb

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class << self
88
"myshopify.io",
99
"myshopify.com",
1010
"spin.dev",
11+
"shop.dev",
1112
].freeze
1213

1314
def sanitize_shop_domain(shop_domain)

test/shopify_app/utils_test.rb

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class UtilsTest < ActiveSupport::TestCase
1212
"my-shop.myshopify.com",
1313
"https://my-shop.myshopify.com",
1414
"http://my-shop.myshopify.com",
15+
"my-shop.shop.dev",
16+
"https://my-shop.shop.dev",
17+
"http://my-shop.shop.dev",
1518
].each do |good_url|
1619
test "sanitize_shop_domain for (#{good_url})" do
1720
assert ShopifyApp::Utils.sanitize_shop_domain(good_url)

0 commit comments

Comments
 (0)