Adding headers to browser.get () requests in the protractor

I want to add cookies to auto-authorization headers in a test using a protractor, but there is no native way to do this as I understand it ... How do I add custom headers to the browser.get () request?

+3


source to share


1 answer


Selenium (WebDriver) doesn't support this. One way to solve this is to use an intermediate proxy and manipulate the headers along the line. Keep in mind that this solution works great for HTTP, but will require some additional workarounds if you are using HTTPS (and in most cases this is not viable).



+1


source







All Articles