Skip to content

Commit 9f0fc3a

Browse files
Change allow_origins attribute of CORSMiddleware to accept the newest origins variable
1 parent 6a61ab4 commit 9f0fc3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxbox_api/proxbox_api/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def proxbox_tag():
127127

128128
app.add_middleware(
129129
CORSMiddleware,
130-
allow_origins=['*'],
130+
allow_origins=origins,
131131
allow_credentials=True,
132132
allow_methods=["GET", "POST"],
133133
allow_headers=["*"]

0 commit comments

Comments
 (0)