|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
Hello,
I want to add custom headers and found that I can use BeforeSendHeaders event for that. But when I am trying to modify e.Request.Headers I am getting exception "Additional information: This headers collection can not be modified because the associated Request object is readonly.".
How I can add custom headers to the request?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You can use BeforeRequestLoad event to attach custom headers.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
Thank you for the answer. I can't use it for Referer header. Meanwhile it works for any other customer header.
Do you have any ideas how to use it for Referer?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
You can not override Referer header. That header is always internally set by the browser engine.
|
|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
It's quite important question for us. Maybe there is another way to do it? Can you give any suggestions?
If it's not possible at all, maybe you can add this feature?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We do not have any plan to add that in the near future. This is one of the special header that the browser engine will always override. This is just one of numerous "special" things that does not follow the "normal" code flow. Changing those behaviors requires significant amount of change to the browser engine which would carry a high risk of breaking something else. As such we are not planing to add this at this moment. Sorry about it!
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
Oh, it's really sad. I moved to EO from another component. Configured everything, which I found much more better than many other componets and I can't change the Refer header, I need to find a solution for that :)
|
|