Current time: 08-20-2019, 11:20 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
overrideHost support in cross-platform agent
03-28-2018, 12:53 AM
Post: #3
RE: overrideHost support in cross-platform agent
There may be hope. I just tested the setHeader command for both Firefox and Chrome and it worked with the Host header so there is some level of it being possible. The main trick is going to be to only change the header for requests bound to the given origin.

For Firefox it should be possible since the headers are modified in an extension that intercepts each request.

For Chrome it is going to be tricky to pull off without impacting performance. The dev tools interface it uses to modify headers only does it globally. Previous experience with using a blocking webRequest handler for Chrome had a LOT of overhead on the actual performance. It is probably going to need to use remote request interception targeted at just the requests for the origin. I'll have to see what the overhead is but my guess is that it is going to be at least a few milliseconds since it needs to round trip over a websocket (on the same machine).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: overrideHost support in cross-platform agent - pmeenan - 03-28-2018 12:53 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)