增加推荐站
This commit is contained in:
parent
37d766865b
commit
eae8c9dae5
|
|
@ -98,7 +98,7 @@ app = FastAPI(
|
|||
)
|
||||
|
||||
# CORS配置(允许React前端访问)
|
||||
cors_origins_str = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:5173,http://as.deepx1.com,http://asapi.deepx1.com')
|
||||
cors_origins_str = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:5173,http://as.deepx1.com,http://asapi.deepx1.com,http://r.deepx1.com')
|
||||
cors_origins = [origin.strip() for origin in cors_origins_str.split(',') if origin.strip()]
|
||||
|
||||
logger.info(f"CORS允许的源: {cors_origins}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user