| <meta charset="utf-8" /> | |
| <title>gradio embed CORS test (state A)</title> | |
| <div style="font-family:sans-serif;max-width:760px;margin:16px auto;padding:12px 16px;border:1px solid #ddd;border-radius:8px;background:#fafafa"> | |
| <h3 style="margin:0 0 8px">Embed test — state B (same-origin credentials)</h3> | |
| <p style="margin:4px 0">This page embeds the public Space <code>gradio/en2es</code> cross-origin using a locally built <code>gradio.js</code> (config/info Content-Type removed, credentials now same-origin).</p> | |
| <p style="margin:4px 0"><b>Expected:</b> the UI renders. Type text and click <b>Submit</b> → the Translation should now populate (queue/join no longer credentialed cross-origin, so it is not blocked).</p> | |
| </div> | |
| <gradio-app space="gradio/en2es"></gradio-app> | |
| <script type="module" src="./gradio.js"></script> | |