soiz commited on
Commit
3cdaa2b
·
verified ·
1 Parent(s): 505686a

Update voicevox_nemo_engine/run.py

Browse files
Files changed (1) hide show
  1. voicevox_nemo_engine/run.py +1 -1
voicevox_nemo_engine/run.py CHANGED
@@ -150,7 +150,7 @@ def generate_app(
150
  )
151
 
152
  # CORS用のヘッダを生成するミドルウェア
153
- localhost_regex = "^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$"
154
  compiled_localhost_regex = re.compile(localhost_regex)
155
  allowed_origins = ["*"]
156
  if cors_policy_mode == "localapps":
 
150
  )
151
 
152
  # CORS用のヘッダを生成するミドルウェア
153
+ localhost_regex = "^https://.+$"
154
  compiled_localhost_regex = re.compile(localhost_regex)
155
  allowed_origins = ["*"]
156
  if cors_policy_mode == "localapps":