mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-17 19:51:28 +00:00
add type annotation
This commit is contained in:
@@ -473,7 +473,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
.reduce((obj, [key, val]) => {
|
.reduce((obj, [key, val]) => {
|
||||||
obj[key] = val;
|
obj[key] = val;
|
||||||
return obj;
|
return obj;
|
||||||
}, {});
|
}, {} as { [key: string]: string });
|
||||||
addResult(`Origin check:${org}`);
|
addResult(`Origin check:${org}`);
|
||||||
if (responseHeaders["access-control-allow-credentials"] != "true") {
|
if (responseHeaders["access-control-allow-credentials"] != "true") {
|
||||||
addResult("❗ CORS is not allowing credential");
|
addResult("❗ CORS is not allowing credential");
|
||||||
|
|||||||
Reference in New Issue
Block a user