Codesandbox-client: Codesandbox define API request need redirect

Created on 28 Mar 2020  路  6Comments  路  Source: codesandbox/codesandbox-client

馃悰 bug report

Codesandbox define API need redirect.

Description of the problem

https://github.com/ant-design/ant-design/issues/22636

How has this issue affected you? What are you trying to accomplish?

https://github.com/ant-design/ant-design/issues/22636

Link to sandbox: link (optional)

https://codesandbox.io/s/define-api-post-request-qzlp7nw34q?from-embed

Your Environment

| Software | Name/Version |
| ---------------- | ------------ |
| 小odesandbox | 1.1.13
| Browser | chrome Version 80.0.3987.149 (Official Build) (64-bit)
| Operating System | mac os 10.15.3

Need Info

All 6 comments

I'm not clear from the linked issue what it is you're requesting. You can already get the ID of a generated sandbox which you can use to create a redirect, see https://codesandbox.io/docs/importing#define-without-render

I'm running into this too (just noticed it since a few days). This causes a "redirect" link on iframes using a src with a /define URL. Up until a few days / weeks ago, this was just showing the content of the target page of the redirect.

Sandbox: https://codesandbox.io/s/define-api-get-request-00f4f

Screen Shot 2020-03-31 at 16 21 31


This causes solutions using things similar to gatsby-remark-embedded-codesandbox to fail. See:

Looking into this now...

It should work as expected now again, I'm sorry for the inconvenience! This was a regression due to a recent CORS change.

Wow so fast Ives! 馃殌馃挴 Looks good, back to normal! :)

@Rustin-Liu is it back to normal for you too? If so, I guess this can be closed. Looks like at least your demo links is working...

@karlhorky @CompuIves @garethx Thank for your supporting, it's working now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

k15a picture k15a  路  3Comments

oliversturm picture oliversturm  路  3Comments

wojciechczerniak picture wojciechczerniak  路  3Comments

NataliaTepluhina picture NataliaTepluhina  路  3Comments

supersonicclay picture supersonicclay  路  3Comments