You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
openProject API always opens StackBlitz homepage when used in a Figma plugin #28
I encountered an issue with the openProject API of the StackBlitz SDK while creating a Figma plugin. The plugin renders a button that, when clicked, is supposed to create a project using the StackBlitz SDK. However, instead of opening the specified project, it always redirects to the StackBlitz homepage.
After further investigation, I discovered that Figma overrides the POST method and instead sends a GET request. This behavior isn't explicitly documented but has been observed when testing with my local server endpoint.
In the following example, the request resolves to a GET method on the server, and the message is never received:
Would it be possible to support sending project settings via a GET request using URLSearchParams for the https://stackblitz.com/run endpoint? This would be similar to how CodeSandbox handles it:
Activity
isBatak commentedon Feb 18, 2025
After further investigation, I discovered that Figma overrides the POST method and instead sends a GET request. This behavior isn't explicitly documented but has been observed when testing with my local server endpoint.
In the following example, the request resolves to a GET method on the server, and the message is never received:
Would it be possible to support sending project settings via a GET request using
URLSearchParamsfor thehttps://stackblitz.com/runendpoint? This would be similar to how CodeSandbox handles it: