Skip to content

Commit a1b5fce

Browse files
author
Carlos Filoteo
committed
feat(serve): allow CORS access while running ng serve (angular#2872)
1 parent 88131a0 commit a1b5fce

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)