Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 297 for Cookie2 (0.07 seconds)

  1. docs/zh/docs/tutorial/cors.md

    ## 通配符
    
    也可以使用 `"*"`(一个「通配符」)声明这个列表,表示全部都是允许的。
    
    但这仅允许某些类型的通信,不包括所有涉及凭据的内容:像 Cookies 以及那些使用 Bearer 令牌的授权 headers 等。
    
    因此,为了一切都能正常工作,最好显式地指定允许的源。
    
    ## 使用 `CORSMiddleware`
    
    你可以在 **FastAPI** 应用中使用 `CORSMiddleware` 来配置它。
    
    * 导入 `CORSMiddleware`。
    * 创建一个允许的源列表(由字符串组成)。
    * 将其作为「中间件」添加到你的 **FastAPI** 应用中。
    
    你也可以指定后端是否允许:
    
    * 凭证(授权 headers,Cookies 等)。
    * 特定的 HTTP 方法(`POST`,`PUT`)或者使用通配符 `"*"` 允许所有方法。
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 4.5K bytes
    - Click Count (0)
  2. fastapi/__init__.py

    from .exceptions import HTTPException as HTTPException
    from .exceptions import WebSocketException as WebSocketException
    from .param_functions import Body as Body
    from .param_functions import Cookie as Cookie
    from .param_functions import Depends as Depends
    from .param_functions import File as File
    from .param_functions import Form as Form
    from .param_functions import Header as Header
    from .param_functions import Path as Path
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 15:19:50 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/response-change-status-code.md

    对于这些情况,你可以使用一个`Response`参数。
    
    ## 使用 `Response` 参数
    
    你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。
    
    然后你可以在这个*临时*响应对象中设置`status_code`。
    
    {* ../../docs_src/response_change_status_code/tutorial001.py hl[1,9,12] *}
    
    然后你可以像平常一样返回任何你需要的对象(例如一个`dict`或者一个数据库模型)。如果你声明了一个`response_model`,它仍然会被用来过滤和转换你返回的对象。
    
    **FastAPI**将使用这个临时响应来提取状态码(也包括cookies和头部),并将它们放入包含你返回的值的最终响应中,该响应由任何`response_model`过滤。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  4. docs_src/cookie_params/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import Cookie, FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: Annotated[str | None, Cookie()] = None):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 205 bytes
    - Click Count (0)
  5. docs_src/cookie_params/tutorial001_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Cookie, FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: Annotated[Union[str, None], Cookie()] = None):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 218 bytes
    - Click Count (0)
  6. docs/zh/docs/index.md

        * 自动补全
        * 类型检查
    * 数据校验:
        * 在校验失败时自动生成清晰的错误信息
        * 对多层嵌套的 JSON 对象依然执行校验
    * <abbr title="也被称为:序列化或解析">转换</abbr> 来自网络请求的输入数据为 Python 数据类型。包括以下数据:
        * JSON
        * 路径参数
        * 查询参数
        * Cookies
        * 请求头
        * 表单
        * 文件
    * <abbr title="也被称为:序列化或解析">转换</abbr> 输出的数据:转换 Python 数据类型为供网络传输的 JSON 数据:
        * 转换 Python 基础类型 (`str`、 `int`、 `float`、 `bool`、 `list` 等)
        * `datetime` 对象
        * `UUID` 对象
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/cors.md

    Es ist auch möglich, die Liste als `"*"` (ein „Wildcard“) zu deklarieren, um anzuzeigen, dass alle erlaubt sind.
    
    Aber das erlaubt nur bestimmte Arten der Kommunikation und schließt alles aus, was Anmeldeinformationen beinhaltet: Cookies, Autorisierungsheader wie die, die mit Bearer Tokens verwendet werden, usw.
    
    Um sicherzustellen, dass alles korrekt funktioniert, ist es besser, die erlaubten Origins explizit anzugeben.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  8. okhttp-logging-interceptor/README.md

    the potential to leak sensitive information such as "Authorization" or "Cookie" headers and the
    contents of request and response bodies. This data should only be logged in a controlled way or in
    a non-production environment.
    
    You can redact headers that may contain sensitive information by calling `redactHeader()`.
    ```java
    logging.redactHeader("Authorization");
    logging.redactHeader("Cookie");
    ```
    
    Download
    --------
    
    ```kotlin
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessCookieResourceProvider.java

    package org.codelibs.fess.mylasta.direction.sponsor;
    
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.lastaflute.core.security.InvertibleCryptographer;
    import org.lastaflute.web.servlet.cookie.CookieResourceProvider;
    
    /**
     * The provider of cookie resource.
     *
     * @author jflute
     */
    public class FessCookieResourceProvider implements CookieResourceProvider {
    
        protected final FessConfig harborConfig;
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/cors.md

    ## Curingas { #wildcards }
    
    É possível declarar a lista como `"*"` (um "curinga") para dizer que tudo está permitido.
    
    Mas isso só permitirá certos tipos de comunicação, excluindo tudo que envolva credenciais: cookies, cabeçalhos de autorização como aqueles usados ​​com Bearer Tokens, etc.
    
    Então, para que tudo funcione corretamente, é melhor especificar explicitamente as origens permitidas.
    
    ## Usar `CORSMiddleware` { #use-corsmiddleware }
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 5.9K bytes
    - Click Count (0)
Back to Top