"Expected a valid shop query parameter" Embedded App

Hey @awwdam ,

Thanks for your reply! This issue has been bugging me for some time. I already do that the other post suggests. I currently do pass the “shop” query param in the URL and redirect using:

ctx.redirect(`/?shop=${shop}`);

^ This is in my server.js.

Hence, it is able to load the app and actually load my _app.js. Whatever is in my index.js page actually shows up on the page. However, if I click a tab in the embedded app navigation bar, I get the error "Expected a valid shop query parameter".

Also, how should we be storing shopOrigin? Is it okay to store it in cookies in server.js like:

ctx.cookies.set('shopOrigin', shop, {
          httpOnly: false,
          secure: true,
          sameSite: 'none'
});

? And then getting the cookies in the frontend?