Node and React app. POST access_token and shop

Highlighted
Tourist
11 0 1

Can you help me? I want to send my shop Origin to React, but if I put my shopOrigin in cookies on some browser it doesn't work. How can I send shopOrigin with Koa to React ? I need it for App Bridge...

0 Likes
Highlighted
Shopify Partner
1840 177 711

Hi @Andre 

Are you setting the cookie with sameSite option set to none?

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

Which browser isn't working for you? 

Liked this post? You might also like our fantastic upsell apps Candy Rack and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
0 Likes
Highlighted
Tourist
11 0 1

Yes I'm setting like that.

 

Incognito on Chrome is not working and Safari

0 Likes
Highlighted
Tourist
11 0 1

Isn't there any other way to send shop origin to app bridge from koa?

0 Likes