Skip to content

Commit

Permalink
docs: Update regex for better CORS support
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 29, 2025
1 parent 2934d11 commit 36db441
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ export default ({command}) => ({
server: {
// Allow cross-origin requests -- https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6
allowedHosts: true,
cors: true,
cors: {
origin: /(\.local|\.site|localhost)/
},
fs: {
strict: false
},
Expand Down

0 comments on commit 36db441

Please sign in to comment.