Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,10 @@ process = AudioProcessor()
|
|
14 |
transcripter = TranscriptionMaker()
|
15 |
app = Flask(__name__)
|
16 |
|
17 |
-
CORS
|
|
|
|
|
|
|
18 |
|
19 |
# GASのエンドポイントURL
|
20 |
GAS_URL = "https://script.google.com/macros/s/AKfycbwR2cnMKVU1AxoT9NDaeZaNUaTiwRX64Ul0sH0AU4ccP49Byph-TpxtM_Lwm4G9zLnuYA/exec"
|
|
|
14 |
transcripter = TranscriptionMaker()
|
15 |
app = Flask(__name__)
|
16 |
|
17 |
+
# CORS設定: すべてのオリジンからのリクエストを許可
|
18 |
+
# 必要であれば、特定のオリジンやメソッド、ヘッダーをより厳密に指定できます
|
19 |
+
# 例: CORS(app, resources={r"/api/*": {"origins": "http://localhost:3000"}}, supports_credentials=True)
|
20 |
+
CORS(app, origins="*", methods=["GET", "POST", "DELETE", "OPTIONS"], headers=["Content-Type", "Authorization"])
|
21 |
|
22 |
# GASのエンドポイントURL
|
23 |
GAS_URL = "https://script.google.com/macros/s/AKfycbwR2cnMKVU1AxoT9NDaeZaNUaTiwRX64Ul0sH0AU4ccP49Byph-TpxtM_Lwm4G9zLnuYA/exec"
|