fix cors andr

This commit is contained in:
fyears 2022-04-13 22:24:34 +08:00
parent 470fe141ef
commit 9fdb379251
3 changed files with 6 additions and 9 deletions

View File

@ -125,7 +125,7 @@
"settings_s3_secretaccesskey": "Secret Access Key", "settings_s3_secretaccesskey": "Secret Access Key",
"settings_s3_bucketname": "Bucket Name", "settings_s3_bucketname": "Bucket Name",
"settings_s3_bypasscorslocally": "bypass CORS issue locally", "settings_s3_bypasscorslocally": "bypass CORS issue locally",
"settings_s3_bypasscorslocally_desc": "The plugin allows skipping server CORS config in new version (Obsidian>={{ver}}). If you encounter any issues, please disable this setting and config CORS on servers (allowing requests from app://obsidian.md and capacitor://localhost and http://localhost and add ETag into exposed headers).", "settings_s3_bypasscorslocally_desc": "The plugin allows skipping server CORS config in new version of Obsidian ( desktop>=0.13.25 or iOS>=1.1.1 or Android>=1.2.1). If you encounter any issues, please disable this setting and config CORS on servers (allowing requests from app://obsidian.md and capacitor://localhost and http://localhost and add ETag into exposed headers).",
"settings_s3_parts": "Parts Concurrency", "settings_s3_parts": "Parts Concurrency",
"settings_s3_parts_desc": "Large files are split into small parts to upload in S3. How many parts do you want to upload in parallel at most?", "settings_s3_parts_desc": "Large files are split into small parts to upload in S3. How many parts do you want to upload in parallel at most?",
"settings_s3_urlstyle": "S3 URL style", "settings_s3_urlstyle": "S3 URL style",
@ -168,8 +168,7 @@
"settings_webdav": "Remote For Webdav", "settings_webdav": "Remote For Webdav",
"settings_webdav_disclaimer1": "Disclaimer: The information is stored in locally. Other malicious/harmful/faulty plugins may read the info. If you see any unintentional access to your webdav server, please immediately change the username and password.", "settings_webdav_disclaimer1": "Disclaimer: The information is stored in locally. Other malicious/harmful/faulty plugins may read the info. If you see any unintentional access to your webdav server, please immediately change the username and password.",
"settings_webdav_cors_android": "Obsidian Android does not yet support bypassing CORS locally for Webdav.", "settings_webdav_cors_os": "Obsidian desktop>=0.13.25 or iOS>=1.1.1 or Android>=1.2.1 supports bypassing CORS locally. But you are using an old version, and you're suggested to upgrade Obsidian.",
"settings_webdav_cors_otheros": "Obsidian desktop>=0.13.25 or iOS>=1.1.1 supports bypassing CORS locally. But you are using an old version, and you're suggested to upgrade Obsidian.",
"settings_webdav_cors": "You need to configure CORS to allow requests from origin app://obsidian.md and capacitor://localhost and http://localhost", "settings_webdav_cors": "You need to configure CORS to allow requests from origin app://obsidian.md and capacitor://localhost and http://localhost",
"settings_webdav_folder": "We will create and sync inside the folder /{{remoteBaseDir}} on your server.", "settings_webdav_folder": "We will create and sync inside the folder /{{remoteBaseDir}} on your server.",
"settings_webdav_addr": "Server Address", "settings_webdav_addr": "Server Address",

View File

@ -125,7 +125,7 @@
"settings_s3_secretaccesskey": "Secret Access Key", "settings_s3_secretaccesskey": "Secret Access Key",
"settings_s3_bucketname": "存储桶Bucket的名字", "settings_s3_bucketname": "存储桶Bucket的名字",
"settings_s3_bypasscorslocally": "本地绕过 CORS 问题", "settings_s3_bypasscorslocally": "本地绕过 CORS 问题",
"settings_s3_bypasscorslocally_desc": "对于 Obsidian 新版本(>= {{ver}}),本插件可以跳过服务器设置 CORS 的步骤。如果您遇到任意问题,可以关闭此设定,并在服务端设置 CORS允许来自 app://obsidian.md 和 capacitor://localhost 和 http://localhost 的请求且增加 ETag 到暴露 headers 里)。", "settings_s3_bypasscorslocally_desc": "对于 Obsidian 新版本(桌面版>=0.13.25 或 iOS>=1.1.1 或 Android>=1.2.1),本插件可以跳过服务器设置 CORS 的步骤。如果您遇到任意问题,可以关闭此设定,并在服务端设置 CORS允许来自 app://obsidian.md 和 capacitor://localhost 和 http://localhost 的请求且增加 ETag 到暴露 headers 里)。",
"settings_s3_parts": "分块并行度", "settings_s3_parts": "分块并行度",
"settings_s3_parts_desc": "在 S3 里,大文件会被分块上传。您希望同一时间最多有多少个分块被上传?", "settings_s3_parts_desc": "在 S3 里,大文件会被分块上传。您希望同一时间最多有多少个分块被上传?",
"settings_s3_urlstyle": "S3 URL style", "settings_s3_urlstyle": "S3 URL style",
@ -168,8 +168,7 @@
"settings_webdav": "Webdav 设置", "settings_webdav": "Webdav 设置",
"settings_webdav_disclaimer1": "声明:您所输入的信息存储于本地。其它有害的或者出错的插件,是有可能读取到这些信息的。如果您发现了 Webdav 服务器有不符合预期的访问,请立刻修改用户名和密码。", "settings_webdav_disclaimer1": "声明:您所输入的信息存储于本地。其它有害的或者出错的插件,是有可能读取到这些信息的。如果您发现了 Webdav 服务器有不符合预期的访问,请立刻修改用户名和密码。",
"settings_webdav_cors_android": "Obsidian Android 暂未支持 Webdav 跳过 CORS 设置。", "settings_webdav_cors_os": "Obsidian 桌面版>=0.13.25 或 iOS>=1.1.1 或 Android>=1.2.1 支持跳过 CORS 设置。但您正在使用旧版,建议升级。",
"settings_webdav_cors_otheros": "Obsidian 桌面版>=0.13.25 或 iOS>=1.1.1 支持跳过 CORS 设置。但您正在使用旧版,建议升级。",
"settings_webdav_cors": "您需要设置 CORS允许来自这些源的请求app://obsidian.md 和 capacitor://localhost 和 http://localhost。", "settings_webdav_cors": "您需要设置 CORS允许来自这些源的请求app://obsidian.md 和 capacitor://localhost 和 http://localhost。",
"settings_webdav_folder": "我们会在您的服务器上创建此文件夹并在里面同步:/{{remoteBaseDir}}", "settings_webdav_folder": "我们会在您的服务器上创建此文件夹并在里面同步:/{{remoteBaseDir}}",
"settings_webdav_addr": "服务器地址", "settings_webdav_addr": "服务器地址",

View File

@ -125,7 +125,7 @@
"settings_s3_secretaccesskey": "Secret Access Key", "settings_s3_secretaccesskey": "Secret Access Key",
"settings_s3_bucketname": "儲存桶Bucket的名字", "settings_s3_bucketname": "儲存桶Bucket的名字",
"settings_s3_bypasscorslocally": "本地繞過 CORS 問題", "settings_s3_bypasscorslocally": "本地繞過 CORS 問題",
"settings_s3_bypasscorslocally_desc": "對於 Obsidian 新版本(>= {{ver}}),本外掛可以跳過伺服器設定 CORS 的步驟。如果您遇到任意問題,可以關閉此設定,並在服務端設定 CORS允許來自 app://obsidian.md 和 capacitor://localhost 和 http://localhost 的請求且增加 ETag 到暴露 headers 裡)。", "settings_s3_bypasscorslocally_desc": "對於 Obsidian 新版本(桌面版>=0.13.25 或 iOS>=1.1.1 或 Android>=1.2.1),本外掛可以跳過伺服器設定 CORS 的步驟。如果您遇到任意問題,可以關閉此設定,並在服務端設定 CORS允許來自 app://obsidian.md 和 capacitor://localhost 和 http://localhost 的請求且增加 ETag 到暴露 headers 裡)。",
"settings_s3_parts": "分塊並行度", "settings_s3_parts": "分塊並行度",
"settings_s3_parts_desc": "在 S3 裡,大檔案會被分塊上傳。您希望同一時間最多有多少個分塊被上傳?", "settings_s3_parts_desc": "在 S3 裡,大檔案會被分塊上傳。您希望同一時間最多有多少個分塊被上傳?",
"settings_s3_urlstyle": "S3 URL style", "settings_s3_urlstyle": "S3 URL style",
@ -168,8 +168,7 @@
"settings_webdav": "Webdav 設定", "settings_webdav": "Webdav 設定",
"settings_webdav_disclaimer1": "宣告:您所輸入的資訊儲存於本地。其它有害的或者出錯的外掛,是有可能讀取到這些資訊的。如果您發現了 Webdav 伺服器有不符合預期的訪問,請立刻修改使用者名稱和密碼。", "settings_webdav_disclaimer1": "宣告:您所輸入的資訊儲存於本地。其它有害的或者出錯的外掛,是有可能讀取到這些資訊的。如果您發現了 Webdav 伺服器有不符合預期的訪問,請立刻修改使用者名稱和密碼。",
"settings_webdav_cors_android": "Obsidian Android 暫未支援 Webdav 跳過 CORS 設定。", "settings_webdav_cors_os": "Obsidian 桌面版>=0.13.25 或 iOS>=1.1.1 或 Android>=1.1.1 支援跳過 CORS 設定。但您正在使用舊版,建議升級。",
"settings_webdav_cors_otheros": "Obsidian 桌面版>=0.13.25 或 iOS>=1.1.1 支援跳過 CORS 設定。但您正在使用舊版,建議升級。",
"settings_webdav_cors": "您需要設定 CORS允許來自這些源的請求app://obsidian.md 和 capacitor://localhost 和 http://localhost。", "settings_webdav_cors": "您需要設定 CORS允許來自這些源的請求app://obsidian.md 和 capacitor://localhost 和 http://localhost。",
"settings_webdav_folder": "我們會在您的伺服器上建立此資料夾並在裡面同步:/{{remoteBaseDir}}", "settings_webdav_folder": "我們會在您的伺服器上建立此資料夾並在裡面同步:/{{remoteBaseDir}}",
"settings_webdav_addr": "伺服器地址", "settings_webdav_addr": "伺服器地址",