You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace hardcoded service-specific hostname checks with sophisticated cross-origin redirect detection that matches industry standards from Python requests library and Apache HttpClient.
8
+
9
+
**Key improvements:**
10
+
-**Case-insensitive hostname comparison** for robust origin detection
11
+
-**HTTP→HTTPS upgrade allowance** on standard ports (80→443) for backward compatibility
12
+
-**Proper default port handling** that treats implicit and explicit default ports as equivalent
13
+
-**Standards-compliant cross-origin detection** following RFC specifications
14
+
15
+
**Fixes GitHub issue #9207:** GitHub release asset downloads failing with 403 Forbidden when redirected from `api.github.com` to `release-assets.githubusercontent.com` (Azure backend) or other cloud storage services that don't accept GitHub tokens.
16
+
17
+
The implementation now handles all cross-origin redirect scenarios while maintaining compatibility with legitimate same-origin redirects and industry-standard HTTP→HTTPS upgrades.
0 commit comments