Skip to content

Commit fcf4ad4

Browse files
committed
fix(config-utils): disable cors checking on serve-federated dev server
1 parent c4ed81b commit fcf4ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/config-utils/src/serve-federated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function federate(argv: Record<string, any>, cwd: string) {
2626

2727
concurrently([
2828
`${WEBPACK_PATH} --config ${configPath} --watch --output-path ${path.join(outputPath, config.output.publicPath)}`,
29-
`${HTTP_SERVER_PATH} ${outputPath} -p ${argv.port || 8003} -c-1 -a ::`,
29+
`${HTTP_SERVER_PATH} ${outputPath} -p ${argv.port || 8003} -c-1 -a :: --cors=*`,
3030
]);
3131
});
3232
} catch (error) {

0 commit comments

Comments
 (0)