TidyLinker.com
TypeScript
Pull Request Merged
PR #53 merged: Fix Stripe Connect fetch failing with basic auth
Summary
- Fix fetch() failing when site is accessed with basic auth credentials (e.g.,
tidy:[email protected]) - Add browser tests for Stripe Connect page (11 tests)
Problem
When accessing the site through basic auth, the Wayfinder route URL includes credentials which causes fetch() to fail:
Request cannot be constructed from a URL that includes credentials
Solution
Extract just the pathname from the URL before calling fetch, stripping any embedded credentials.
Test plan
- 11 browser tests pass locally (page states, UI elements, auth required)
- Test on production with basic auth - click "Set Up Payment Account" should redirect to Stripe
+218
additions
-22
deletions
4
files changed