fix fwd response headers

This commit is contained in:
Kevin Pham
2023-11-28 00:06:41 -06:00
parent 9a8d4ac261
commit 214790f905
5 changed files with 23 additions and 15 deletions

View File

@@ -32,7 +32,7 @@ func NewProxySiteHandler(opts *ProxyOptions) fiber.Handler {
SetDebugLogging(opts.Verbose).
SetRequestModifications(
//rx.MasqueradeAsFacebookBot(),
rx.MasqueradeAsGoogleBot(),
//rx.MasqueradeAsGoogleBot(),
//rx.DeleteOutgoingCookies(),
rx.ForwardRequestHeaders(),
rx.SetOutgoingCookie("nyt-a", " "),
@@ -45,10 +45,10 @@ func NewProxySiteHandler(opts *ProxyOptions) fiber.Handler {
//rx.RequestArchiveIs(),
).
AddResponseModifications(
tx.BypassCORS(),
tx.BypassContentSecurityPolicy(),
//tx.DeleteIncomingCookies(),
tx.ForwardResponseHeaders(),
//tx.BypassCORS(),
//tx.BypassContentSecurityPolicy(),
//tx.DeleteIncomingCookies(),
tx.RewriteHTMLResourceURLs(),
tx.PatchDynamicResourceURLs(),
//tx.SetContentSecurityPolicy("default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;"),