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 dd9ff7c commit 61cb904
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 @@ -70,7 +70,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 61cb904

Please sign in to comment.