forked from mirror/MrDoc
默认允许来自obsidian的跨域请求
This commit is contained in:
parent
b3ef6673ed
commit
e54daeb1fe
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user