Repository navigation
Bypass www redirect for API and login requests (incl. safety-data), replaces #32 - #33
Merged
atalyaalon merged 3 commits intoNov 30, 2026
Merged
Conversation
…rule
safety-data-client logs in with credentials via ${apiUrl}/sd-authorize/,
/sd-callback/ and /sd-user/ (anyway flask_app.py), which the bypass did
not cover. Adding them is harmless: same backend, only the redirect is
skipped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XtN7GhfRRihvBTHsWxGZoV
safety-data-client calls ${API_ANYWAY_URL}/involved, /involved/groupby and
/city with a JSON content type (preflighted CORS), which a redirect breaks
if that URL is www.anyway.co.il. Harmless otherwise: same backend.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XtN7GhfRRihvBTHsWxGZoV
atalyaalon
deleted the
claude/laughing-galileo-165xk1-www-api-redirect
branch
November 30, 2026 02:02
This was referenced Nov 30, 2026
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.
What it does
File:
apps-dfc2/anyway/compose.yamlA Traefik router,
anyway-www-api, with priority 100. That's higher than thewww→anyway.co.ilredirect router, whose default priority is its rule length, 24. For these paths onwww.anyway.co.il, requests go straight toanyway-nginx:/api/…/authorize/…,/callback/…,/user/…,/logout/sd-authorize/…,/sd-callback/…,/sd-user/…AuthService.ts, with credentials)/involved,/involved/…,/cityAccidentService.ts,CityService.ts; JSON content type, so preflighted)Every other path on
www.anyway.co.ilstill redirects toanyway.co.il, as before.Why:
anyway-nginx), the same hostname, and the same certificate.How the list was found: I searched every data-for-change repo for code that calls
www.anyway.co.il. Browser apps that call it outside these paths: none./markers, which are page visits or native requests.//user/...). Those still redirect.Commits
bd37921(Tamar):/api/,/authorize/,/callback/,/user/,/logoutd96c7d7: safety-data login routes (/sd-*), plus a comment explaining the rule5d0cb34: safety-data data routes (/involved,/city)Merging
mainis 10 lines in one file, and the backup schedule stays monthly (10 0 1 * *).docker compose configpasses.dfc2 anyway CI). Onlyanyway-nginxis recreated, a few seconds' blip, below the uptime monitor's ~2.5 minute alert threshold. dfc is not touched.After merging, check
10 0 1 * *.200plus anAccess-Control-Allow-Originheader:301toanyway.co.il:curl -sI https://www.anyway.co.il/ | head -3Review
A Fable 5.2 review found no blockers: safe to merge. It confirmed the media.anyway.co.il cause from the code. Its open question, safety-data's
/involvedand/city, is now covered.🤖 Generated with Claude Code
https://claude.ai/code/session_01XtN7GhfRRihvBTHsWxGZoV