fix(cors): proxy devv-app.js via server and reference same-origin to avoid CORS

This commit is contained in:
Chenwei Jiang 2025-08-21 17:17:01 +08:00
parent f6cab715e6
commit ba92de04f2
Signed by: cheverjohn
GPG key ID: ADC4815BFE960182
2 changed files with 19 additions and 2 deletions

View file

@ -9,8 +9,8 @@
</head>
<body>
<div id="root"></div>
<!-- IMPORTANT: Never remove the following script reference, otherwise advanced features like element editing will not work -->
<script src="https://static.devv.ai/devv-app.js" type="module"></script>
<!-- IMPORTANT: Keep this script for advanced features; proxied via server to avoid CORS -->
<script src="/devv-app.js" type="module"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>