I switch user-agent using the chrome extention and here is the user-agent string in the http header:
Here is a console log of the window.navigator.userAgent. why aren't they the same? How can I programmatically get the userAgent shown in the http header in Javascript or Angular?