Results of 1 - 7 of about 7 for allow (0.009 sec.)
- CORS (オリジン間リソース共有) 13322
- CORS (オリジン間リソース共有) CORSまたは「オリジン間リソース共有」 は、ブラウザで実行されているフロントエンドにバックエンドと通信するJavaScriptコードがあり、そのバックエンドがフロントエンドとは異なる「オリジン」にある状況を指します。 オリジ
...https://localhost.tiangolo.com" , "http://localhost" , "http://localhost:8080" , ] app . add_middleware ( CORSMiddleware , allow_origins = origins , allow_credentials = True , allow_methods = [ "*" ], allow_headers = [ "*" ], ) @app . get ( "/" ) asyn...メソッド、またはヘッダーを使用可能にするためには、それらを明示的に有効にする必要があります 以下の引数がサポートされています: allow_origins - オリジン間リクエストを許可するオリジンのリスト。例えば、 ['https://example.org', 'https://www.example.org'] 。 [...'*'] を使用して任意のオリジンを許可できます。 allow_origin_regex - オリジン間リクエストを許可するオリジンの正規表現文字列。例えば、 'https://.*\.example\.org' 。 allow_method... - https://man.mtool.work/fastapi/0.115/tutorial/cors/
- Advanced Security 9415
- Advanced Security Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Additional Features There are some extra features to handle security apart from the ones covered
...t sections assume you already read the main Tutorial - User Guide: Security . They are all based on the same concepts, but allow some extra functionalities.... - https://man.mtool.work/fastapi/0.115/advanced/security/
- Release Notes 8724
- Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom
...pdate internal annotation usage for compatibility with Pydantic 2.11. PR #13314 by @Viicos . Upgrades ⬆️ Bump Starlette to allow up to 0.46.0: >=0.40.0,<0.47.0 . PR #13426 by @musicinmybrain . Translations ? Add Ukrainian translation for docs/uk/docs/...ndabot[bot] . 0.115.7 Upgrades ⬆️ Upgrade python-multipart to >=0.0.18. PR #13219 by @DanielKusyDev . ⬆️ Bump Starlette to allow up to 0.45.0: >=0.40.0,<0.46.0 . PR #13117 by @Kludex . ⬆️ Upgrade jinja2 to >=3.1.5. PR #13194 by @DanielKusyDev . Refact...te. PR #12076 by @pre-commit-ci[bot] . ? Update latest-changes GitHub Action. PR #12073 by @tiangolo . 0.112.2 Fixes ? Fix allow_inf_nan option for Param and Body classes. PR #11867 by @giunio-prc . ? Ensure that app.include_router merges nested lifes... - https://man.mtool.work/fastapi/0.115/release-notes/
- Advanced Middleware 8488
- Advanced Middleware Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In the main tutorial you read how to add Custom Middleware to your application. And then you al
...astapi.middleware.trustedhost import TrustedHostMiddleware app = FastAPI () app . add_middleware ( TrustedHostMiddleware , allowed_hosts = [ "example.com" , "*.example.com" ] ) @app . get ( "/" ) async def main (): return { "message" : "Hello World" }...The following arguments are supported: allowed_hosts - A list of domain names that should be allowed as hostnames. Wildcard domains such as *.example.com are supported...for matching subdomains. To allow any hostname either use allowed_hosts=["*"] or omit the middleware. If an incoming request does not validate correctly the... - https://man.mtool.work/fastapi/0.115/advanced/middleware/
- Header Parameter Models 8251
- Header Parameter Models Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you have a group of related header parameters , you can create a Pydantic model to decla
...re them. This would allow you to re-use the model in multiple places and also to declare validations and metadata for all the parameters at once. ?...ol header with a value of plumbus , they will receive an error response telling them that the header parameter tool is not allowed: { "detail" : [ { "type" : "extra_forbidden" , "loc" : [ "header" , "tool" ], "msg" : "Extra inputs are not permitted" ,... - https://man.mtool.work/fastapi/0.115/tutorial/header-param-models/
- OAuth2 scopes 7688
- OAuth2 scopes Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use OAuth2 scopes directly with FastAPI , they are integrated to work seamlessly. This would
... - https://man.mtool.work/fastapi/0.115/advanced/security/oauth2-scopes/
- SQL (Relational) Databases 7688
- SQL (Relational) Databases Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . FastAPI doesn't require you to use a SQL (relational) database. But you can use any data
...hat it should be NULLABLE . Field(index=True) tells SQLModel that it should create a SQL index for this column, that would allow faster lookups in the database when reading data filtered by this column. SQLModel will know that something declared as st...il = "Hero not found" ) session . delete ( hero ) session . commit () return { "ok" : True } Using check_same_thread=False allows FastAPI to use the same SQLite database in different threads. This is necessary as one single request could use more than... - https://man.mtool.work/fastapi/0.115/tutorial/sql-databases/
PREV
1
NEXT