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 24a381d commit 378f798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildchain/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default defineConfig(({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 378f798

Please sign in to comment.