Skip to content

Commit 8265d47

Browse files
authored
fix(rsbuild-mf): fix CORS warnings and preview asset errors (#384)
1 parent 1d5dc3e commit 8265d47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rsbuild/module-federation-enhanced/provider/rsbuild.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ export default defineConfig({
1515
],
1616
server: {
1717
port: 3000,
18+
cors: { origin: '*' },
19+
},
20+
output: {
21+
assetPrefix: 'http://localhost:3000',
1822
},
1923
});

0 commit comments

Comments
 (0)