website online working
This commit is contained in:
16
main.py
16
main.py
@@ -12,23 +12,9 @@ app = FastAPI()
|
||||
app.include_router(delivery.router)
|
||||
|
||||
|
||||
origins = [
|
||||
"http://localhost:9000",
|
||||
"https://localhost:9513",
|
||||
"http://localhost:9514",
|
||||
"http://localhost:9512",
|
||||
"http://localhost:9511",
|
||||
"http://192.168.1.204:9000",
|
||||
"http://192.168.1.204:9513",
|
||||
"http://192.168.1.204:9514",
|
||||
"http://192.168.1.204:9512",
|
||||
"http://192.168.1.204:9511",
|
||||
|
||||
]
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=origins,
|
||||
allow_origins=ApplicationConfig.origins,
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
|
||||
Reference in New Issue
Block a user