Skip to content

Commit 7c834a8

Browse files
filoxohansl
authored andcommitted
feat(serve): allow CORS access while running ng serve (#2872) (#3009)
1 parent 6b2ddd8 commit 7c834a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular-cli/tasks/serve-webpack.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default Task.extend({
7070
this.project.root,
7171
`./${CliConfig.fromProject().config.apps[0].root}`
7272
),
73+
headers: { 'Access-Control-Allow-Origin': '*' },
7374
historyApiFallback: {
7475
disableDotRule: true,
7576
htmlAcceptHeaders: ['text/html', 'application/xhtml+xml']

0 commit comments

Comments
 (0)