Skip to content

Commit

Permalink
refactor: Make the regex more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 29, 2025
1 parent 4201487 commit 2ab2c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default ({command}) => ({
// Allow cross-origin requests -- https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6
allowedHosts: true,
cors: {
origin: /(\.local|\.site|\.test|localhost)/
origin: /https?:\/\/([A-Za-z0-9\-\.]+)?(localhost|\.local|\.test|\.site)(?::\d+)?$/
},
fs: {
strict: false
Expand Down

0 comments on commit 2ab2c96

Please sign in to comment.