Results of 1 - 6 of about 6 for browser (0.002 sec.)
- Behind a Proxy 12247
- Behind a Proxy Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some situations, you might need to use a proxy server like Traefik or Nginx with a configuration
...d expect to get the OpenAPI schema at /openapi.json , instead of /api/v1/openapi.json . So, the frontend (that runs in the browser) would try to reach /openapi.json and wouldn't be able to get the OpenAPI schema. Because we have a proxy with a path pref...ix of /api/v1 for our app, the frontend needs to fetch the OpenAPI schema at /api/v1/openapi.json . graph LR browser("Browser") proxy["Proxy on http://0.0.0.0:9999/api/v1/app"] server["Server on http://127.0.0.1:8000/app"] browser --> prox...d that the server (Uvicorn) won't use that root_path for anything else than passing it to the app. But if you go with your browser to http://127.0.0.1:8000/app you will see the normal response: { "message" : "Hello World" , "root_path" : "/api/v1" } So,... - https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
- HTTP Basic Auth 10071
- HTTP Basic Auth Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . For the simplest cases, you can use HTTP Basic Auth. In HTTP Basic Auth, the application expects a
...ized" error. And returns a header WWW-Authenticate with a value of Basic , and an optional realm parameter. That tells the browser to show the integrated prompt for a username and password. Then, when you type that username and password, the browser sen...: credentials . password } When you try to open the URL for the first time (or click the "Execute" button in the docs) the browser will ask you for your username and password: Check the username Here's a more complete example. Use a dependency to check...ith a status code 401 (the same returned when no credentials are provided) and add the header WWW-Authenticate to make the browser show the login prompt again: Python 3.9+ import secrets from typing import Annotated from fastapi import Depends , FastAPI... - https://man.mtool.work/fastapi/0.115/advanced/security/http-basic-auth/
- Configure Swagger UI 10071
- Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa
...fault URL `/openapi.json`. """ ), ], title : Annotated [ str , Doc ( """ The HTML `<title>` content, normally shown in the browser tab. """ ), ], swagger_js_url : Annotated [ str , Doc ( """ The URL to use to load the Swagger UI JavaScript. It is normal...ger-ui.css" , swagger_favicon_url : Annotated [ str , Doc ( """ The URL of the favicon to use. It is normally shown in the browser tab. """ ), ] = "https://fastapi.tiangolo.com/img/favicon.png" , oauth2_redirect_url : Annotated [ Optional [ str ], Doc (...fault URL `/openapi.json`. """ ), ], title : Annotated [ str , Doc ( """ The HTML `<title>` content, normally shown in the browser tab. """ ), ], redoc_js_url : Annotated [ str , Doc ( """ The URL to use to load the ReDoc JavaScript. It is normally set... - https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
- Response Headers 7640
- Response Headers Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Use a Response parameter You can declare a parameter of type Response in your path operation funct
...custom proprietary headers can be added using the 'X-' prefix . But if you have custom headers that you want a client in a browser to be able to see, you need to add them to your CORS configurations (read more in CORS (Cross-Origin Resource Sharing) ),... - https://man.mtool.work/fastapi/0.115/advanced/response-headers/
- Development - Contributing 7640
- Development - Contributing Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . First, you might want to see the basic ways to help FastAPI and get help . Developing If
...scripts/test-cov-html.sh This command generates a directory ./htmlcov/ , if you open the file ./htmlcov/index.html in your browser, you can explore interactively the regions of code that are covered by the tests, and notice if there is any region missin...tures.md Tip Notice that the only change in the path and file name is the language code, from en to es . If you go to your browser you will see that now the docs show your new section (the info box at the top is gone). ? Now you can translate it all and... - https://man.mtool.work/fastapi/0.115/contributing/
- Sub Applications - Mounts 7092
- Sub Applications - Mounts Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you need to have two independent FastAPI applications, with their own independent Open
...ub-path prefix /subapi : If you try interacting with any of the two user interfaces, they will work correctly, because the browser will be able to talk to each specific app or sub-app. Technical Details: root_path When you mount a sub-application as des... - https://man.mtool.work/fastapi/0.115/advanced/sub-applications/
PREV
1
NEXT