in Runtime_env/app/server.py [0:0]
def configure_cors(app):
urls = ["http://localhost:4200"]
if os.getenv("FRONTEND_URL"):
urls.append(os.getenv("FRONTEND_URL"))
# urls = ["*"]
app.add_middleware(
CORSMiddleware,
allow_origins=urls,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)