Please confirm that you have:
In which of these areas are you experiencing a problem?
App
Expected behavior
shopify app dev should work correctly in a Codespaces environment.
Actual behavior
The Shopify embedded app iframe shows "github.com refused to connect." The error message is:
Refused to frame 'https://github.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
The root cause seems to be that GitHub auth cookies have SameSite=Lax, so the iframe will never see them.
I can work around it with CODESPACE_NAME= pnpm exec shopify app dev to force a Cloudflare tunnel (side note, I'd love a better way to configure the tunnel).
Verbose output
N/A
Reproduction steps
- Start the embedded app template in Codespaces.
- Run
shopify app dev and open the preview URL.
Operating System
Codespaces
Shopify CLI version (shopify --version)
@shopify/cli/3.83.2
Shell
No response
Node version (run node -v if you're not sure)
No response
What language and version are you using in your application?
No response
Please confirm that you have:
In which of these areas are you experiencing a problem?
App
Expected behavior
shopify app devshould work correctly in a Codespaces environment.Actual behavior
The Shopify embedded app iframe shows "github.com refused to connect." The error message is:
The root cause seems to be that GitHub auth cookies have
SameSite=Lax, so the iframe will never see them.I can work around it with
CODESPACE_NAME= pnpm exec shopify app devto force a Cloudflare tunnel (side note, I'd love a better way to configure the tunnel).Verbose output
N/A
Reproduction steps
shopify app devand open the preview URL.Operating System
Codespaces
Shopify CLI version (
shopify --version)@shopify/cli/3.83.2
Shell
No response
Node version (run
node -vif you're not sure)No response
What language and version are you using in your application?
No response