Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Stops auth dialog popping up on Chrome (#379)
* If a 401 http error is returned by jolokia/cluster then Chrome displays an authentication dialog, which is not required and disrupts the app. To stop the dialog appearing, the www-authentication header needs to be dropped from the http response. * webpack.config.dev.js * In dev mode, adding the onProxyRes property to the proxy-middleware allows the www-authenticate header to be removed. * nginx.js * In production mode, the response is already passed through the response function so detecting the status is 401, the www-authenticate header can be removed.
- Loading branch information