Repository navigation
Add an opt-out CORS proxy toggle to ZeitHawk - #7
Merged
Merged
Conversation
Adds a header toggle (on by default) that routes Repeater, Intruder, Recon's DNS/RDAP lookups, and Vuln Scan through corsproxy.io, so requests succeed against targets that don't set their own permissive CORS headers. State persists in localStorage. Recon's port-reachability check is left unproxied since it already uses mode:'no-cors', which isn't CORS-blocked in the first place. Vuln Scan's header checks keep their honest three-state model regardless of the toggle: a header is only ever reported "Present" when actually read, never inferred "Missing" from silence, since what the proxy itself exposes via Access-Control-Expose-Headers isn't something this page can verify. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SkupxCaLk9Nnq24YhigdAn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
localStorage; turning it off reverts every proxied request back to a directfetch()mode:'no-cors', which isn't blocked by CORS in the first place, so routing it through a proxy would only change the network vantage point, not fix anythingcorsproxy.ioitself exposes a target's original headers viaAccess-Control-Expose-Headersisn't something this page can verify, so the same conservative claim applies whether the proxy is on or offtools/zeithawk/README.mdwith a new section documenting the toggle, its third-party tradeoff, and why the port-reachability check is exemptTest plan
https://corsproxy.io/?url=...rather than hitting the target directlycorsproxy.ioitself, so live end-to-end behavior against a real target needs testing outside this environment)🤖 Generated with Claude Code
https://claude.ai/code/session_01SkupxCaLk9Nnq24YhigdAn
Generated by Claude Code