diff --git a/manifest.json b/manifest.json index 306926d..dd453a0 100644 --- a/manifest.json +++ b/manifest.json @@ -12,7 +12,8 @@ "host_permissions": [ "http://localhost:5000/*", - "https://zpdai.rkg.lv/*" + "https://zpdai.rkg.lv/*", + "http://127.0.0.1:5000/*" ], "content_security_policy": { diff --git a/src/borderify.js b/src/borderify.js index 7c48718..23dad17 100644 --- a/src/borderify.js +++ b/src/borderify.js @@ -98,7 +98,9 @@ function generateAndSaveId() { async function checkSessionStatus() { try { - const statusUrl = 'http://127.0.0.1:5000/api/session_status'; + const baseUrl = serverUrl.split('/submit')[0]; + const statusUrl = `${baseUrl}/api/session_status`; + const response = await fetch(statusUrl, { headers: { 'X-Password': password } });