-
Couldn't load subscription status.
- Fork 1.6k
feat: add 127.0.0.1 to DEFAULT_ALLOWED_ANCESTORS allowlist #4581
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: add 127.0.0.1 to DEFAULT_ALLOWED_ANCESTORS allowlist #4581
Conversation
- Add http://127.0.0.1:* and https://127.0.0.1:* patterns to DEFAULT_ALLOWED_ANCESTORS - Add comprehensive tests for 127.0.0.1 IP address handling in isOriginAllowed - Create changeset for patch version across all packages Resolves APKT-3150 Co-Authored-By: enes@reown.com <enes@reown.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
🦋 Changeset detectedLatest commit: 814953b The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
10 Skipped Deployments
|
|
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
- Add https://localhost:* pattern to DEFAULT_ALLOWED_ANCESTORS - Add corresponding test cases for HTTPS localhost - Addresses GitHub comment for consistency between localhost and 127.0.0.1 patterns - Both HTTP and HTTPS patterns now supported for localhost and 127.0.0.1 Co-Authored-By: enes@reown.com <enes@reown.com>
Add HTTPS localhost support to DEFAULT_ALLOWED_ANCESTORS
Summary
This PR adds
https://localhost:*to theDEFAULT_ALLOWED_ANCESTORSlist for consistency with the existing HTTP localhost and 127.0.0.1 patterns. The change addresses a GitHub comment requesting full consistency between localhost and 127.0.0.1 origin handling.Key Changes:
https://localhost:*pattern toDEFAULT_ALLOWED_ANCESTORSinConstantsUtil.tshttp://localhost:*,http://127.0.0.1:*,https://127.0.0.1:*Review & Testing Checklist for Human
https://localhost:*doesn't introduce security vulnerabilities in origin validationhttps://localhost:3000) are properly allowed by theisOriginAllowedfunctionRecommended Test Plan:
https://localhost:3000are accepted by the origin validation logicDiagram
%%{ init : { "theme" : "default" }}%% graph TB subgraph Legend L1["Major Edit"]:::major-edit L2["Minor Edit"]:::minor-edit L3["Context/No Edit"]:::context end ConstantsUtil["packages/appkit/src/utils/ConstantsUtil.ts<br/>DEFAULT_ALLOWED_ANCESTORS"]:::major-edit HelpersUtil["packages/appkit/src/utils/HelpersUtil.ts<br/>isOriginAllowed function"]:::context TestFile["packages/appkit/tests/utils/HelpersUtil.test.ts<br/>origin validation tests"]:::minor-edit Changeset[".changeset/add-localhost-ip-to-allowlist.md<br/>patch version changeset"]:::context ConstantsUtil --> HelpersUtil HelpersUtil --> TestFile ConstantsUtil --> Changeset classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes
Session Details: