2
This commit is contained in:
@@ -145,7 +145,7 @@ class KIChat {
|
||||
this.isTyping = true;
|
||||
|
||||
try {
|
||||
const response = await fetch('scripts/add/send.php', {
|
||||
const response = await fetch('/scripts/add/send.php', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
const API_ENDPOINT = 'scripts/add/send.php';
|
||||
// Use absolute path from site root
|
||||
const API_ENDPOINT = '/scripts/add/send.php';
|
||||
const isLocalFile = window.location.protocol === 'file:';
|
||||
|
||||
// ==========================================
|
||||
|
||||
Reference in New Issue
Block a user