feat: expand cors
This commit is contained in:
+9
-1
@@ -14,7 +14,15 @@ app = FastAPI()
|
|||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=["http://localhost:3000", "https://localhost:3000"],
|
allow_origins=[
|
||||||
|
"http://localhost:3000",
|
||||||
|
"http://localhost:8000",
|
||||||
|
"http://192.168.125.129:3000",
|
||||||
|
"https://192.168.125.129:3000",
|
||||||
|
"http://192.168.125.129:8000",
|
||||||
|
"https://192.168.125.129:8000",
|
||||||
|
"https://site.muszyn.dev",
|
||||||
|
],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ services:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build: ./frontend
|
build: ./frontend
|
||||||
|
env_file: ./.env
|
||||||
ports:
|
ports:
|
||||||
- "3000:80"
|
- "3000:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user