RedisValidation updated
This commit is contained in:
@@ -32,7 +32,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||
"""
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_origins=["http://localhost:3000","*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
|
||||
@@ -48,7 +48,7 @@ class ApiConfig(DefaultApiConfig):
|
||||
# Server Configuration
|
||||
app = "app:app"
|
||||
host = "0.0.0.0"
|
||||
port = 41575
|
||||
port = 8888
|
||||
log_level = "info"
|
||||
reload = True
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||
"""
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_origins=["http://localhost:3000","*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
|
||||
@@ -43,7 +43,7 @@ class ApiConfig(DefaultApiConfig):
|
||||
# Uvicorn server configuration
|
||||
app = "app:app"
|
||||
host = "0.0.0.0"
|
||||
port = 41576
|
||||
port = 8888
|
||||
log_level = "info"
|
||||
reload = True
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ def setup_cors_middleware(app: FastAPI) -> None:
|
||||
"""
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_origins=["http://localhost:3000","*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
|
||||
@@ -42,7 +42,7 @@ class ApiConfig(DefaultApiConfig):
|
||||
# App configuration
|
||||
app = "app:app"
|
||||
host = "0.0.0.0"
|
||||
port = 41577
|
||||
port = 8888
|
||||
log_level = "info"
|
||||
reload = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user