默认允许来自obsidian的跨域请求

This commit is contained in:
yangjian 2024-01-08 11:16:36 +08:00
parent b3ef6673ed
commit e54daeb1fe

View File

@ -257,7 +257,7 @@ else:
# 跨域请求配置
cors_str = CONFIG.get("cors_origin","allow",fallback=[])
capacitor_origins = ['http://localhost','capacitor://localhost']
capacitor_origins = ['http://localhost','capacitor://localhost','app://obsidian.md']
if cors_str == []:
CORS_ALLOWED_ORIGINS = capacitor_origins
else: