-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
It seems that the Fork button inside the embedded stackblitz ist not working anymore, instead returning error 422.
I am using the stackblitz sdk like this:
sdk.embedProjectId( 'stackblitz', repo.name, { height: '100%', openFile: app.component.ts } );
After analysing a bit, it seems that issue is related to chromes same site cookie changes?
To verify I have changed the cookie default flags in the chrome://flags settings like this
And now the fork and sign in work correctly inside my embedded stackblitz
It seems the cookies have to be set from SameSite=Lax to SameSite=None if I understood correctly for 3rd party to work with cookies.
Another thing I noticed is, that when I sign in inside the embedded stackblitz, even tho I am the author of the stackblitz repo, the save button does not appear anymore therefore I am unable to save my work.
With the SameSite cookies disabled, I am automatically logged in and the save button is visible and works as expected.
