Spaces:
Running
Running
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
|
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":
|