- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 223 for 8070 (0.02 sec)
-
docs_src/cors/tutorial001.py
from fastapi.middleware.cors import CORSMiddleware app = FastAPI() origins = [ "http://localhost.tiangolo.com", "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("/") async def main():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 459 bytes - Viewed (0) -
docs/zh/docs/tutorial/cors.md
因此,这些都是不同的源: * `http://localhost` * `https://localhost` * `http://localhost:8080` 即使它们都在 `localhost` 中,但是它们使用不同的协议或者端口,所以它们都是不同的「源」。 ## 步骤 假设你的浏览器中有一个前端运行在 `http://localhost:8080`,并且它的 JavaScript 正在尝试与运行在 `http://localhost` 的后端通信(因为我们没有指定端口,浏览器会采用默认的端口 `80`)。 然后,浏览器会向后端发送一个 HTTP `OPTIONS` 请求,如果后端发送适当的 headers 来授权来自这个不同源(`http://localhost:8080`)的通信,浏览器将允许前端的 JavaScript 向后端发送请求。 为此,后端必须有一个「允许的源」列表。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/cors.md
* `http://localhost` * `https://localhost` * `http://localhost:8080` 모두 `localhost` 에 있지만, 서로 다른 프로토콜과 포트를 사용하고 있으므로 다른 "출처"입니다. ## 단계 브라우저 내 `http://localhost:8080`에서 동작하는 프론트엔드가 있고, 자바스크립트는 `http://localhost`를 통해 백엔드와 통신한다고 가정해봅시다(포트를 명시하지 않는 경우, 브라우저는 `80` 을 기본 포트로 간주합니다). 그러면 브라우저는 백엔드에 HTTP `OPTIONS` 요청을 보내고, 백엔드에서 이 다른 출처(`http://localhost:8080`)와의 통신을 허가하는 적절한 헤더를 보내면, 브라우저는 프론트엔드의 자바스크립트가 백엔드에 요청을 보낼 수 있도록 합니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.8K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/testdata/routes/istio-gateway-http-route-prefix/output.txt
NAME VHOST NAME DOMAINS MATCH VIRTUAL SERVICE http.8080 httpbin.example.com:80 httpbin.example.com /get* httpbin.default backend * /stats/prometheus*
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 29 12:37:14 UTC 2023 - 378 bytes - Viewed (0) -
docs/en/docs/tutorial/debugging.md
``` </div> then the internal variable `__name__` in your file, created automatically by Python, will have as value the string `"__main__"`. So, the section: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` will run. --- This won't happen if you import that module (file). So, if you have another file `importer.py` with: ```Python from myapp import app # Some more code ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/cors.md
* `http://localhost` * `https://localhost` * `http://localhost:8080` すべて `localhost` であっても、異なるプロトコルやポートを使用するので、異なる「オリジン」です。 ## ステップ そして、ブラウザ上で実行されているフロントエンド (`http://localhost:8080`) があり、そのJavaScriptが `http://localhost` で実行されているバックエンドと通信するとします。(ポートを指定していないので、ブラウザはデフォルトの`80`ポートを使用します) 次に、ブラウザはHTTPの `OPTIONS` リクエストをバックエンドに送信します。そして、バックエンドがこの異なるオリジン (`http://localhost:8080`) からの通信を許可する適切なヘッダーを送信すると、ブラウザはフロントエンドのJavaScriptにバックエンドへのリクエストを送信させます。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.3K bytes - Viewed (0) -
istioctl/pkg/workload/testdata/vmconfig-nil-proxy-metadata/mesh.yaml.golden
POD_NAMESPACE: bar SERVICE_ACCOUNT: vm-serviceaccount TRUST_DOMAIN: "" readinessProbe: httpGet:
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 500 bytes - Viewed (0) -
src/packaging/common/env/fess
FESS_TEMP_PATH=${packaging.fess.temp.dir} FESS_LOG_PATH=${packaging.fess.log.dir} FESS_CONF_PATH=${packaging.fess.conf.dir} FESS_VAR_PATH=${packaging.fess.var.dir} FESS_DICTIONARY_PATH=/var/lib/opensearch/config/ # Port FESS_PORT=8080 # Heap Memory FESS_HEAP_SIZE=512m # Elasticsearch Path SEARCH_ENGINE_HOME=/usr/share/opensearch/ # Elasticsearch URL
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sun Jan 15 06:32:15 UTC 2023 - 489 bytes - Viewed (0) -
docs/zh/docs/tutorial/debugging.md
所以,下面这部分代码才会运行: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` --- 如果你是导入这个模块(文件)就不会这样。 因此,如果你的另一个文件 `importer.py` 像这样: ```Python from myapp import app # Some more code ``` 在这种情况下,`myapp.py` 内部的自动变量不会有值为 `"__main__"` 的变量 `__name__`。 所以,下面这一行不会被执行: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` /// info
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.4K bytes - Viewed (0) -
src/test/resources/run.sh
#!/bin/bash touch $(ls -d ./fess-*/logs)/fess-crawler.log tail -f ./fess-*/logs/*.log & mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201" ret=$? if [ $ret != 0 ] ; then for f in `find ./target -type f | grep surefire-reports | grep -v /TEST-` ; do cat $f done fi
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Feb 10 03:25:34 UTC 2024 - 353 bytes - Viewed (0)