修改请求Referer
2024-05-22 22:51:25
newllq.Chromium().SetOnBeforeResourceLoad(func(sender lcl.IObject, browser *cef.ICefBrowser, frame *cef.ICefFrame, request *cef.ICefRequest, callback *cef.ICefCallback, result *consts.TCefReturnValue) { request.SetReferrer("https://m.quark.cn/s?q=%E5%9B%BD%E8%89%B2%E5%A4%A9%E9%A6%99a%E5%8C%BA%E5%92%8Cb%E5%8C%BA%E5%8C%BA%E5%88%AB&safe=1", consts.REFERRER_POLICY_NEVER_CLEAR_REFERRER) })