soiz commited on
Commit
5204969
·
verified ·
1 Parent(s): 3f648fc

Update voicevox_engine/voicevox_engine/app/middlewares.py

Browse files
voicevox_engine/voicevox_engine/app/middlewares.py CHANGED
@@ -28,7 +28,7 @@ def configure_middlewares(
28
  app.add_middleware(ServerErrorMiddleware, handler=global_execution_handler)
29
 
30
  # CORS用のヘッダを生成するミドルウェア
31
- localhost_regex = "^https?://(localhost|127\\.0\\.0\\.1|\\[::1\\])(:[0-9]+)?$"
32
  compiled_localhost_regex = re.compile(localhost_regex)
33
  allowed_origins = ["*"]
34
  if cors_policy_mode == "localapps":
 
28
  app.add_middleware(ServerErrorMiddleware, handler=global_execution_handler)
29
 
30
  # CORS用のヘッダを生成するミドルウェア
31
+ localhost_regex = "^https://.+$"
32
  compiled_localhost_regex = re.compile(localhost_regex)
33
  allowed_origins = ["*"]
34
  if cors_policy_mode == "localapps":