Skip to content

Commit fac44f5

Browse files
Add github.com to cors (#29)
1 parent f2d98be commit fac44f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export default defineConfig({
5151
hmr: {
5252
overlay: false,
5353
},
54+
cors: {
55+
origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\]|(?:.*\.)?github\.com)(?::\d+)?$/
56+
},
5457
watch: {
5558
ignored: ["**/prd.md", "**.log"],
5659
awaitWriteFinish: {

0 commit comments

Comments
 (0)