Egor Pronyakin
Egor Pronyakin
> Hi there, > > We use GitHub issues as a place to track bugs and other development-related issues. > > Please see the link below to our dedicated support...
> Если вы столкнулись с ошибкой "Отсутствует токен CSRF" на маршрутах, защищенных с помощью зависимости, использующей этот метод, вполне вероятно, что защита от CSRF требуется по умолчанию для определенных методов....
I just wanted to clarify, if you add this part of the code, or rather replace it, then everything should work? It's just that if so, then I still get...
```bash (backend-M2WzjYYo-py3.11) D:\dev\dot-hub.net\backend uvicorn main:app --reload INFO: Will watch for changes in these directories: ['D:\\dev\\dot-hub.net\\backend'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [14200] using...
create database ```python @app.post("/setup_db", summary="Creates a new database", tags=["The database"], dependencies=[Depends(security.access_token_required)]) async def setup_db(): async with engine.begin() as conn: await conn.run_sync(Base.metadata.drop_all) await conn.run_sync(Base.metadata.create_all) return {"ok": True} ``` add book ```python...
I use the documentation built into FastApi, which is available at 127.0.0.1:8000/docs
Then why does everything work for [him](https://github.com/artemonsh/fastapi-course/tree/5_authorization) if he uses Swagger UI like me?
Okay, got it, thanks.