Skip to content

Commit

Permalink
feat(serve): allow CORS access while running ng serve (#2872) (#3009)
Browse files Browse the repository at this point in the history
  • Loading branch information
filoxo authored and hansl committed Nov 11, 2016
1 parent 6b2ddd8 commit 7c834a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/angular-cli/tasks/serve-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default Task.extend({
this.project.root,
`./${CliConfig.fromProject().config.apps[0].root}`
),
headers: { 'Access-Control-Allow-Origin': '*' },
historyApiFallback: {
disableDotRule: true,
htmlAcceptHeaders: ['text/html', 'application/xhtml+xml']
Expand Down

0 comments on commit 7c834a8

Please sign in to comment.