We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d4667 commit 842f626Copy full SHA for 842f626
vite.config.js
@@ -1,7 +1,16 @@
1
-import { defineConfig } from 'vite';
+import {defineConfig} from 'vite';
2
import laravel from 'laravel-vite-plugin';
3
4
export default defineConfig({
5
+
6
+ server: {
7
+ cors: {
8
+ origin: [
9
+ /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/,
10
+ /^https?:\/\/.*\.test(:\d+)?$/, // Valet / Herd (SCHEME://*.test:PORT)
11
+ ],
12
+ },
13
14
plugins: [
15
laravel({
16
input: ['resources/css/app.css', 'resources/js/app.js'],
0 commit comments