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 a76921d
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="modulepreload" href="${valibotCode}" crossorigin="anonymous" />
<script type="importmap">
{ "imports": { "valibot": "${valibotCode}" } }
</script>
Expand Down

0 comments on commit a76921d

Please sign in to comment.