fix recursive proxy calls

This commit is contained in:
Kevin Pham
2023-11-22 07:21:48 -06:00
parent bfd647e526
commit 7668713b1a
2 changed files with 25 additions and 2 deletions

View File

@@ -56,13 +56,15 @@ func NewProxySiteHandler(opts *ProxyOptions) fiber.Handler {
SetFiberCtx(c).
SetDebugLogging(opts.Verbose).
SetRequestModifications(
rx.DeleteOutgoingCookies(),
//rx.DeleteOutgoingCookies(),
//rx.RequestArchiveIs(),
rx.MasqueradeAsGoogleBot(),
).
AddResponseModifications(
tx.DeleteIncomingCookies(),
//tx.DeleteIncomingCookies(),
tx.RewriteHTMLResourceURLs(),
tx.BypassCORS(),
tx.BypassContentSecurityPolicy(),
).
Execute()