Fortsatta ändringar för tester och felsökningsändamål
This commit is contained in:
@@ -41,7 +41,7 @@ function sendMessage() {
|
||||
const xhr = new XMLHttpRequest();
|
||||
|
||||
// Configure the request
|
||||
xhr.open('POST', '/chat'); // Set method to POST and URL
|
||||
xhr.open('POST', '/api/chat'); // Set method to POST and URL
|
||||
xhr.setRequestHeader('Content-Type', 'application/json'); // Essential for sending JSON
|
||||
|
||||
// Handle response data
|
||||
|
||||
Reference in New Issue
Block a user