Merge pull request 'extend dev CORS flag to include methods' (#299) from cors into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/299
This commit is contained in:
@@ -65,7 +65,8 @@ def start_server(args: argparse.Namespace) -> None:
|
|||||||
(
|
(
|
||||||
"Access-Control-Allow-Origin",
|
"Access-Control-Allow-Origin",
|
||||||
f"http://{host}:{args.dev_port}",
|
f"http://{host}:{args.dev_port}",
|
||||||
)
|
),
|
||||||
|
("Access-Control-Allow-Methods", "HEAD, POST, GET, OPTIONS"),
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
open_url = f"http://[{args.host}]:{args.port}"
|
open_url = f"http://[{args.host}]:{args.port}"
|
||||||
|
|||||||
Reference in New Issue
Block a user