Skip to content

Commit

Permalink
/settingのAllow Originを設定しても正しく認識しない (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteball authored Feb 1, 2023
1 parent 779e794 commit 377dd1b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,9 +1194,11 @@ def setting_post(
else settings.cors_policy_mode
)

allow_origin = (
args.allow_origin if args.allow_origin is not None else settings.allow_origin
)
allow_origin = None
if args.allow_origin is not None:
allow_origin = args.allow_origin
elif settings.allow_origin is not None:
allow_origin = settings.allow_origin.split(" ")

uvicorn.run(
generate_app(
Expand Down

0 comments on commit 377dd1b

Please sign in to comment.