soiz commited on
Commit
9d61a4e
·
verified ·
1 Parent(s): 2423f35

Update voicevox_engine/voicevox_engine/app/application.py

Browse files
voicevox_engine/voicevox_engine/app/application.py CHANGED
@@ -45,7 +45,7 @@ def generate_app(
45
  cancellable_engine: CancellableEngine | None = None,
46
  character_info_dir: Path | None = None,
47
  cors_policy_mode: CorsPolicyMode = CorsPolicyMode.localapps,
48
- allow_origin: list[str] | None = None,
49
  disable_mutable_api: bool = False,
50
  ) -> FastAPI:
51
  """ASGI 'application' 仕様に準拠した VOICEVOX ENGINE アプリケーションインスタンスを生成する。"""
@@ -62,7 +62,7 @@ def generate_app(
62
  version=__version__,
63
  separate_input_output_schemas=False, # Pydantic V1 のときのスキーマに合わせるため
64
  )
65
- app = configure_middlewares(app, cors_policy_mode, allow_origin)
66
  app = configure_global_exception_handlers(app)
67
 
68
  resource_manager = ResourceManager(is_development())
 
45
  cancellable_engine: CancellableEngine | None = None,
46
  character_info_dir: Path | None = None,
47
  cors_policy_mode: CorsPolicyMode = CorsPolicyMode.localapps,
48
+ allow_origin: "all",
49
  disable_mutable_api: bool = False,
50
  ) -> FastAPI:
51
  """ASGI 'application' 仕様に準拠した VOICEVOX ENGINE アプリケーションインスタンスを生成する。"""
 
62
  version=__version__,
63
  separate_input_output_schemas=False, # Pydantic V1 のときのスキーマに合わせるため
64
  )
65
+ app = configure_middlewares(app, cors_policy_mode, "all")
66
  app = configure_global_exception_handlers(app)
67
 
68
  resource_manager = ResourceManager(is_development())