rein0421 commited on
Commit
1ca94c7
·
verified ·
1 Parent(s): 08e786e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -14,7 +14,10 @@ process = AudioProcessor()
14
  transcripter = TranscriptionMaker()
15
  app = Flask(__name__)
16
 
17
- CORS(app, origins="*")
 
 
 
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"