-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Playground #67
feat: Playground #67
Conversation
I'll have a closer look today. |
I tried this Article : https://www.nytimes.com/2023/12/10/us/harvard-president-claudine-gay.html |
The proxy route applies some modifications by default: SetRequestModifications(
rx.AddCacheBusterQuery(),
rx.MasqueradeAsGoogleBot(),
rx.ForwardRequestHeaders(),
rx.DeleteOutgoingCookies(),
rx.SpoofReferrerFromRedditPost(),
).
AddResponseModifications(
tx.ForwardResponseHeaders(),
tx.BlockThirdPartyScripts(),
tx.DeleteIncomingCookies(),
tx.DeleteLocalStorageData(),
tx.DeleteSessionStorageData(),
tx.BypassCORS(),
tx.BypassContentSecurityPolicy(),
tx.RewriteHTMLResourceURLs(),
tx.PatchDynamicResourceURLs(),
tx.PatchTrackerScripts(),
) Currently, the playground is completely blank - no modifications applied unless the user selects them, but we could very easily apply some sensible defaults if that makes more sense by adding them within return proxychain.
NewProxyChain().
SetFiberCtx(c).
WithAPIPath(path).
AddResponseModifications(
// sensible defaults
).
AddResponseModifications(
// sensible defaults
).
AddOnceRequestModifications(modificationData.RequestModifications...).
AddOnceResponseModifications(modificationData.ResponseModifications...).
Execute() |
Migrating prior work over to utilize the new
api/modifiers
endpoint and codegen structs.Outstanding todos
Complete
form.html
Export yaml button
Injection scripts modal
Potential future improvements