hm you might be able to put an WAF rule on the path and require a specific header+value or query par
hm you might be able to put an WAF rule on the path and require a specific header+value or query param to be set to not get blocked







pyodide.ffi.JsProxy related error, here's my code:upstream connect error or disconnect/reset before headers. reset reason: connection termination, what went wrong?pyodide.ffi.JsProxyupstream connect error or disconnect/reset before headers. reset reason: connection terminationres.headers.set("age", Math.round(Date.now() - new Date(res.headers.get("date")).getTime() / 1e3))class TodoDB:
@staticmethod
async def get_todos(db):
query = """
SELECT id, user_id, text
FROM todos;
"""
results = await db.prepare(query).all()
return results.results
@app.get("/todos")
async def get_todos(request: Request):
results = await TodoDB.get_todos(request.scope["env"].DB)
return Response.json(results)