mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-18 01:34:00 -05:00
Merge branch origin/claude/fix-cors-allowed-origins-01HCTgyXSDTC3wrmCBnt1ZTN into main
This commit is contained in:
@@ -24,7 +24,7 @@ ALGORITHM=HS256
|
|||||||
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
||||||
REFRESH_TOKEN_EXPIRE_DAYS=7
|
REFRESH_TOKEN_EXPIRE_DAYS=7
|
||||||
WALLET_MASTER_KEY=changeme-wallet-master-key
|
WALLET_MASTER_KEY=changeme-wallet-master-key
|
||||||
ALLOWED_ORIGINS=https://blackroad.systems,https://your-frontend.example
|
ALLOWED_ORIGINS=https://blackroad.systems,https://www.blackroad.systems,https://os.blackroad.systems,https://blackroad-operating-system-production.up.railway.app,http://localhost:3000,http://localhost:8000
|
||||||
JWT_SECRET=changeme-jwt-secret
|
JWT_SECRET=changeme-jwt-secret
|
||||||
SESSION_SECRET=changeme-session-secret
|
SESSION_SECRET=changeme-session-secret
|
||||||
NEXTAUTH_SECRET=changeme-nextauth-secret
|
NEXTAUTH_SECRET=changeme-nextauth-secret
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ class Settings(BaseSettings):
|
|||||||
WALLET_MASTER_KEY: str = "local-wallet-master-key-32chars-0000"
|
WALLET_MASTER_KEY: str = "local-wallet-master-key-32chars-0000"
|
||||||
|
|
||||||
# CORS
|
# CORS
|
||||||
ALLOWED_ORIGINS: str = "http://localhost:3000,http://localhost:8000"
|
# Include production domains by default to ensure Railway deployments work
|
||||||
|
ALLOWED_ORIGINS: str = "https://blackroad.systems,https://www.blackroad.systems,https://os.blackroad.systems,https://blackroad-operating-system-production.up.railway.app,http://localhost:3000,http://localhost:8000"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def allowed_origins_list(self) -> List[str]:
|
def allowed_origins_list(self) -> List[str]:
|
||||||
|
|||||||
Reference in New Issue
Block a user