Commit e543877
feat: Add Railway service reference support for dynamic CORS configuration
Enable CORS configuration via Railway's dynamic service references to eliminate hardcoded URLs and support automatic URL updates on redeployment.
Key Changes:
- Added admin_panel_url and additional_cors_origins to settings
- Implemented dynamic CORS origin building from environment variables
- Created comprehensive CORS vs Authentication documentation
- Added Railway-specific CORS setup guide with service references
Benefits:
- No hardcoded URLs needed in code
- Lower latency with Railway internal routing
- Automatic updates when services are redeployed
- Clear distinction between browser-only CORS and server-side auth
Server-side team clients (Python, Node.js, curl) are unaffected by CORS restrictions - they work from anywhere with Bearer tokens.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 75d741c commit e543877
9 files changed
Lines changed: 967 additions & 14 deletions
File tree
- docs
- admin-dashboard
- deployment
- integration
- src
- config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
23 | | - | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
312 | 320 | | |
313 | 321 | | |
314 | 322 | | |
| |||
0 commit comments