Skip to content

Commit

Permalink
refactor: Add .test to localdev CORS origin regex
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 29, 2025
1 parent 53c50bd commit 6cd0995
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 @@ -66,7 +66,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|localhost)/
origin: /(\.local|\.site|\.test|localhost)/
},
fs: {
strict: false
Expand Down

0 comments on commit 6cd0995

Please sign in to comment.