Repository navigation
feat(api): fetch accepts allowedDomains - #235
Open
kunwar-bot wants to merge 2 commits into
Open
kunwar-bot wants to merge 2 commits into
kunwar-bot wants to merge 2 commits into
Conversation
kunwar-bot
marked this pull request as ready for review
November 25, 2026 18:01
jordin
approved these changes
Nov 25, 2026
jordin
left a comment
Member
There was a problem hiding this comment.
LGTM. fetch_api.create(allowed_domains=...) and BadRequestError both exist in the generated client, from examples import bb matches the other examples, and the squash title gives release-please the feat that 7f374a2's subject missed.
This branch has not been deployed
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
Adds
examples/fetch_allowed_domains.py: one fetch to a host on theallowedDomainslist, and one to a host that isn't, which the API rejects with a 400 (BadRequestError).allowedDomainsreached this SDK in 7f374a2 (generated from browserbase/core#15896), but that commit's subject,api: forward fetch allowedDomains to fetch-api, isn't a conventional commit, so release-please doesn't count it. This PR's squash title,feat(api): fetch accepts allowedDomains, gives the next release its feature bump and changelog line.Only
examples/changes; no generated code.Testing
The API side is live in prod:
allowedDomainsonPOST /v1/fetchreturns 200 for an allowed host, 400 for a host outside the list, 400 for a redirect to a host outside the list, and 400 for a list over 1000 entries. This example, run frommainagainst prod, printedFetched 200 from example.com, thenBlocked: ... host example.com is not in allowedDomains.