codesandbox / codesandbox/codesandbox-client

Integration with vercel does not work

Open
#6,582 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

💥 Crash Report

What were you trying to accomplish when the crash occurred?

Please use this issue template to describe what you were doing when you encountered this crash. While we are able to fill in some details automatically, it's not always enough to reproduce!

Link to sandbox: [link]() (optional)
Crash Details
Environment
Browser Version Operating System CodeSandbox Version
chrome 99.0.4844 Linux x86_64 0aa5beeaf

Route:
https://codesandbox.io/signin/eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJDb2RlU2FuZGJveCIsImV4cCI6MTY1MDk1NzI1OCwiaWF0IjoxNjQ4MzY1MjU4LCJpc3MiOiJDb2RlU2FuZGJveCIsImp0aSI6ImNiY2MzOWNlLTM0MjktNGVkYy05MTg2LWNhOWE0Mjc4ZTNmYiIsIm5iZiI6MTY0ODM2NTI1Nywic3ViIjoiVXNlcjozNDQ4Mjk5Mi1hODMzLTQzNmYtOTdiNS01ZTZjNDU1YmI0YTYiLCJ0eXAiOiJhY2Nlc3MifQ.6JwIDE-1QxkKQEsb75UFcESj1cCgJDX2bDdvpfVjvBS2WKJCX7UklgBRfUWuaOk4Wno-O97lcMljCEDycz4Czg

Error Code:
e3ed3c5da02648608ccaa65aa92e245e

Error Message
SecurityError: Blocked a frame with origin "https://codesandbox.io" from accessing a cross-origin frame.
Error: Blocked a frame with origin "https://codesandbox.io" from accessing a cross-origin frame.
  at new n (https://codesandbox.io/static/js/page-sign-in.ff806d259.chunk.js?_sw-precache=40e205143134d6a3095caf5c52beec79:1:8097)
  at ki (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1781255)
  at Ya (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1798138)
  at xs (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1836093)
  at ml (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1820397)
  at hl (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1820322)
  at il (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1817650)
  at https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775833
  at t.unstable_runWithPriority (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1851169)
  at qo (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775542)
  at Xo (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775778)
  at Yo (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1775713)
  at el (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1814436)
  at Object.enqueueSetState (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:1780537)
  at o._.setState (https://codesandbox.io/static/js/common.eff6be823.chunk.js:1:2034189)
  at https://codesandbox.io/static/js/default~app~embed.27f22cef3.chunk.js?_sw-precache=4ca1825b803dca75c55b25ba20f62065:477:144893

  in n
  in o
  in t
  in t
  in div
  in elements__Content
  in n
  in withRouter(n)
  in div
  in elements__Container
  in Unknown
  in withRouter()
  in t
  in Unknown
  in De
  in c
  in t

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report identifies the sign-in route and a cross-origin SecurityError in the generated page-sign-in, common, and defaultappembed JavaScript bundles. Start by reproducing the Vercel integration sign-in flow and tracing the corresponding source code behind that error. Done means the flow no longer crashes when the embedded frame has a different origin.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.