Skip to content

Commit

Permalink
fix(cli-service): restrict request headers of historyApiFallback in W…
Browse files Browse the repository at this point in the history
…ebpackDevServer (#6162)
  • Loading branch information
githoniel committed Jan 5, 2021
1 parent 5830171 commit a634400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@vue/cli-service/lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ module.exports = (api, options) => {
clientLogLevel: 'silent',
historyApiFallback: {
disableDotRule: true,
htmlAcceptHeaders: [
'text/html',
'application/xhtml+xml'
],
rewrites: genHistoryApiFallbackRewrites(options.publicPath, options.pages)
},
contentBase: api.resolve('public'),
Expand Down

0 comments on commit a634400

Please sign in to comment.