Shopify / shopify-marketplaces-admin-app

MIT License
38 stars 45 forks source link

The app couldn’t be loaded #22

Closed huyvo closed 2 years ago

huyvo commented 2 years ago

When I start and type https://xxxx/login?shop=yyy.myshopify.com in browser, it goes to installation page to ask for permission. However, it does not works when I select a store to test from my app. There is no ‘/login’ in url

I have fixed this by adding app.get('/)', async (req, res) => { return res.redirect(‘/login?${req.query.shop}’); }); However, it get’s caught in a redirect loop. App is installed incorrectly. It displays: “The app couldn’t be loaded. The app can’t load due to an issue with browser cookies. Try enabling cookies in your browser …”

I started application by “shopify app serve” Any help here is appreciated. Thanks.

huyvo commented 2 years ago

We have fixed this.Thanks

cma93 commented 1 year ago

@huyvo can you please tell me how you did it?