Skip to content

Instantly share code, notes, and snippets.

@serslon
Created September 25, 2018 07:59
Show Gist options
  • Select an option

  • Save serslon/44e80db55b09e9901ae0588a482d85b8 to your computer and use it in GitHub Desktop.

Select an option

Save serslon/44e80db55b09e9901ae0588a482d85b8 to your computer and use it in GitHub Desktop.
the configuration for proxy webpack dev server from http to https
{
devServer: {
port: 9000,
publicPath: '/',
proxy: {
'/oauth2': {
target: {
host: 'securehost.com',
protocol: 'https:',
port: 443,
},
changeOrigin: true,
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment