Allowed all origins
This commit is contained in:
parent
9f5aa4a927
commit
3d9027c159
1 changed files with 1 additions and 2 deletions
|
|
@ -49,8 +49,7 @@ async def lifespan(app: FastAPI):
|
||||||
app = FastAPI(lifespan=lifespan)
|
app = FastAPI(lifespan=lifespan)
|
||||||
|
|
||||||
origins = [
|
origins = [
|
||||||
"http://127.0.0.1:8080",
|
"*"
|
||||||
"http://0.0.0.0:8080" #Will become something like 'bordspellen2.yarnecoppens.com'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue