Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
82 stars 9 forks source link

Redirect loop when browser block 3rd party cookies #352

Open geoffrey-syncx opened 1 month ago

geoffrey-syncx commented 1 month ago

Describe the bug

I just enable embed option on my shopify application, and insert shopify app bridge cdn into my ruby on rails app It work wells, Shopify Admin able to load my app and my app will redirect to Shopify Admin if open outside of admin.

BUT, if I test it in browser with "Block 3rd Party Cookies" enable, There will be redirect loop between Shopify Admin and my app until error below appear

image

To Reproduce

N/A

Expected behaviour

Able to load my app successfully inside Shopify Admin with "Blocked 3rd party cookies" enabled browser

Contextual information

Packages and versions

Platform

ALL

Additional context

Add any other context about the problem here, such as your app’s configuration (Node, Next.js, Rails).

darrynten commented 1 month ago

Have you enabled cookie partitions?

See https://developers.google.com/privacy-sandbox/3pcd/chips