add_middleware ( CORSMiddleware, allow_origins = origins, allow_credentials = True, allow_methods =, allow_headers =, ). Specific HTTP headers or all of them with the wildcard "*".įrom fastapi import FastAPI from import CORSMiddleware app = FastAPI () origins = app.Specific HTTP methods ( POST, PUT) or all of them with the wildcard "*".Credentials (Authorization headers, Cookies, etc).You can also specify if your backend allows: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |