fix(cors): proxy devv-app.js via server and reference same-origin to avoid CORS
This commit is contained in:
parent
f6cab715e6
commit
ba92de04f2
2 changed files with 19 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue