Skip to content

Commit 27edfe9

Browse files
authored
Add more origins for dev (#427)
1 parent c39ca74 commit 27edfe9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

main.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,17 @@ async def lifespan(app: FastAPI):
5050
dev_origins = [
5151
"http://localhost",
5252
"http://localhost:3000",
53+
"http://127.0.0.1",
54+
"http://127.0.0.1:3000",
5355
]
5456

55-
stage_origins = ["https://stage.frontend.fsektionen.se"]
57+
stage_origins = [
58+
"https://stage.frontend.fsektionen.se",
59+
"http://localhost",
60+
"http://localhost:3000",
61+
"http://127.0.0.1",
62+
"http://127.0.0.1:3000",
63+
]
5664

5765
production_origins = ["https://fsektionen.se"]
5866

0 commit comments

Comments
 (0)