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 2517a69 commit ff4d092
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|localhost)/
origin: /(\.local|\.site|\.test|localhost)/
},
fs: {
strict: false
Expand Down

0 comments on commit ff4d092

Please sign in to comment.