Skip to content

Commit

Permalink
Fix CORS error by preloading Valibot package
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Oct 3, 2024
1 parent 64ab200 commit 7a97dd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/src/routes/playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ console.log(result);`;
<!DOCTYPE html>
<html>
<head>
<link rel="preload" as="script" href="${valibotCode}" crossorigin="anonymous" />
<script type="importmap">
{ "imports": { "valibot": "${valibotCode}" } }
</script>
Expand Down

0 comments on commit 7a97dd0

Please sign in to comment.