Skip to content

Expose Domain.api_allowed_origins - #800

Merged
Unitix merged 1 commit into
mainfrom
feat/domain-api-allowed-origins
Sep 18, 2026
Merged

Unitix merged 1 commit into
mainfrom
feat/domain-api-allowed-origins

Conversation

@Amtron

@Amtron Amtron commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add Domain.api_allowed_origins so the Python SDK can read and write the domain CORS whitelist for API storefronts.

Test plan

  • Create or update a domain with api_allowed_origins=["https://shop.example.com"]
  • Confirm the property round-trips on fetch

Made with Cursor


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

API storefronts use this list to whitelist browser origins that may call the Merchi API as the domain.

Co-authored-by: Cursor <cursoragent@cursor.com>

@Unitix Unitix left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Unitix
Unitix merged commit 7ba1451 into main Sep 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants