Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/lib/sift_client/_internal/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# API host (host[:port], no scheme) -> frontend origin (with scheme).
_API_HOST_TO_FRONTEND_ORIGIN: dict[str, str] = {
"api.siftstack.com": "https://app.siftstack.com",
"api.development.siftstack.com": "https://app.development.siftstack.com",
"gov.api.siftstack.com": "https://gov.siftstack.com",
}

Expand Down
4 changes: 4 additions & 0 deletions python/lib/sift_client/_tests/test_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class TestFrontendOriginForApi:
("api_base_url", "expected"),
[
("https://api.siftstack.com", "https://app.siftstack.com"),
(
"https://api.development.siftstack.com",
"https://app.development.siftstack.com",
),
("https://gov.api.siftstack.com", "https://gov.siftstack.com"),
# Bare host (no scheme) resolves the same as the full URL.
("api.siftstack.com", "https://app.siftstack.com"),
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sift_stack_py"
version = "0.19.1"
version = "0.19.2"
description = "Python client library for the Sift API"
requires-python = ">=3.8"
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down
Loading