- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 332 for Cookie2 (0.17 sec)
-
docs/en/docs/tutorial/cors.md
## Wildcards It's also possible to declare the list as `"*"` (a "wildcard") to say that all are allowed. But that will only allow certain types of communication, excluding everything that involves credentials: Cookies, Authorization headers like those used with Bearer Tokens, etc. So, for everything to work correctly, it's better to specify explicitly the allowed origins. ## Use `CORSMiddleware`
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Nov 13 20:28:37 UTC 2022 - 5.1K bytes - Viewed (0) -
fastapi/exceptions.py
from typing import Annotated from fastapi import ( Cookie, FastAPI, WebSocket, WebSocketException, status, ) app = FastAPI() @app.websocket("/items/{item_id}/ws") async def websocket_endpoint( *, websocket: WebSocket, session: Annotated[str | None, Cookie()] = None, item_id: str, ): if session is None:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 02:48:51 UTC 2024 - 4.9K bytes - Viewed (0) -
api/go1.23.txt
pkg net, type ListenConfig struct, KeepAliveConfig KeepAliveConfig #62254 pkg net/http, func ParseCookie(string) ([]*Cookie, error) #66008 pkg net/http, func ParseSetCookie(string) (*Cookie, error) #66008 pkg net/http, method (*Request) CookiesNamed(string) []*Cookie #61472 pkg net/http, type Cookie struct, Partitioned bool #62490 pkg net/http, type Cookie struct, Quoted bool #46443 pkg net/http, type Request struct, Pattern string #66405
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 20:48:49 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/cors.md
## 通配符 也可以使用 `"*"`(一个「通配符」)声明这个列表,表示全部都是允许的。 但这仅允许某些类型的通信,不包括所有涉及凭据的内容:像 Cookies 以及那些使用 Bearer 令牌的授权 headers 等。 因此,为了一切都能正常工作,最好显式地指定允许的源。 ## 使用 `CORSMiddleware` 你可以在 **FastAPI** 应用中使用 `CORSMiddleware` 来配置它。 * 导入 `CORSMiddleware`。 * 创建一个允许的源列表(由字符串组成)。 * 将其作为「中间件」添加到你的 **FastAPI** 应用中。 你也可以指定后端是否允许: * 凭证(授权 headers,Cookies 等)。 * 特定的 HTTP 方法(`POST`,`PUT`)或者使用通配符 `"*"` 允许所有方法。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 27 17:28:07 UTC 2021 - 4.5K bytes - Viewed (0) -
src/net/http/request_test.go
func TestRequestCookiesByName(t *testing.T) { tests := []struct { in []*Cookie filter string want []*Cookie }{ { in: []*Cookie{ {Name: "foo", Value: "foo-1"}, {Name: "bar", Value: "bar"}, }, filter: "foo", want: []*Cookie{{Name: "foo", Value: "foo-1"}}, }, { in: []*Cookie{ {Name: "foo", Value: "foo-1"}, {Name: "foo", Value: "foo-2"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0) -
tests/integration/security/fuzz/fuzzers/jwt_tool/jwtconf.ini
[input] wordlist = jwt-common.txt commonHeaders = common-headers.txt commonPayloads = common-payloads.txt [argvals] # Set at runtime - changes here are ignored sigType = targetUrl = cookies = key = keyList = keyFile = headerLoc = payloadclaim = headerclaim = payloadvalue = headervalue = canaryvalue = header = exploitType = scanMode = reqMode = postData = resCode =
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 21 20:06:01 UTC 2021 - 1.1K bytes - Viewed (0) -
src/net/http/cgi/host.go
// should do some tests against Apache to see how it handles // POST, HEAD, etc. Does the internal redirect get the same // method or just GET? What about incoming headers? // (e.g. Cookies) Which headers, if any, are copied into the // second request? newReq := &http.Request{ Method: "GET", URL: url, Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 10.4K bytes - Viewed (0) -
platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientConfigurer.java
import org.apache.http.impl.conn.SystemDefaultRoutePlanner; import org.apache.http.impl.cookie.DefaultCookieSpecProvider; import org.apache.http.impl.cookie.IgnoreSpecProvider; import org.apache.http.impl.cookie.NetscapeDraftSpecProvider; import org.apache.http.impl.cookie.RFC6265CookieSpecProvider; import org.apache.http.protocol.HttpContext; import org.apache.http.protocol.HttpCoreContext;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 18.5K bytes - Viewed (0) -
src/net/http/roundtrip.go
//go:linkname badRoundTrip net/http.(*Transport).RoundTrip func badRoundTrip(*Transport, *Request) (*Response, error) // RoundTrip implements the [RoundTripper] interface. // // For higher-level HTTP client support (such as handling of cookies // and redirects), see [Get], [Post], and the [Client] type. // // Like the RoundTripper interface, the error types returned // by RoundTrip are unspecified. func (t *Transport) RoundTrip(req *Request) (*Response, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 988 bytes - Viewed (0) -
src/internal/poll/fd_wasip1.go
// We treat this like an ordinary system call rather than a call // that tries to fill the buffer. func (fd *FD) ReadDir(buf []byte, cookie syscall.Dircookie) (int, error) { if err := fd.incref(); err != nil { return 0, err } defer fd.decref() for { n, err := syscall.ReadDir(fd.Sysfd, buf, cookie) if err != nil { n = 0 if err == syscall.EAGAIN && fd.pd.pollable() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:14:02 UTC 2024 - 6.7K bytes - Viewed (0)