Page 1 of 1

Set origin with another site

Posted: Sun Jan 30, 2022 5:42 pm
by Haku
When I use SetReferrer in my POST request, this function sets the referrer I need but in the header the origin doesn't change and i cannot set header origin with another site, it just sets my POST url

Re: Set origin with another site

Posted: Mon Jan 31, 2022 9:31 am
by salvadordf
I've never tried to modify that header and I couldn't find any information to do that.

If you use TChromium try implementing TChromium.OnBeforeResourceLoad to modify that header.

Re: Set origin with another site

Posted: Mon Jan 31, 2022 9:56 am
by Haku
So sad, i'm using ICefRequest not a TChrome