Shopify / themekit

Shopify theme development command line tool.
https://shopify.dev/tools/theme-kit
MIT License
1.19k stars 374 forks source link

Bypassing reCaptcha while using themekit & browser-sync for pages in /account area #960

Closed konung closed 2 years ago

konung commented 2 years ago

Hi.

Trying to use browser-sync and themekit for my dev flow — and it works great! (thank you!)

However, I'm hitting an issue when trying to use this setup to develop “account” pages.

Here my browser-sync command browser-sync start --proxy "https://store.myshopify.com/" --files "*/*.*" --reload-delay 1000 --config bs-config.js

Everything works fine when I just develop public facing pages, i.e., https://localhost:3002/pages/company

Then I go to https://localhost:3002/account and try to log in. I log in fine and get presented with Google's reCAPTCHA, and I solve it. But can't get past it no matter what I try.

When I hit submit, I'm just redirected back to https://localhost:3002/challenge

image

Any suggestions?

(For now, I'm just manually refreshing pages I'm working on https://store.myshopify.com/account)

konung commented 2 years ago

Nevermind. RTFM to myself. 🤦

Just found this https://help.shopify.com/en/manual/online-store/setting-up/preferences#enable-or-disable-recaptcha-on-online-store

Looks I can temporarily disable reCaptcha in Shopify store admin area, then re-enable it back once I'm done coding.