Skip to content

Commit 3b583c9

Browse files
committed
Update index.js
1 parent f0cb837 commit 3b583c9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

assets/js/components/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,14 @@ export function intIndex() {
358358

359359
$btn.prop("disabled", true).text("Odesílání...");
360360

361-
// Use local proxy to avoid CORS issues
362-
fetch("/api-proxy.php", {
361+
// Call API directly (CORS is now configured on backend)
362+
fetch("https://projectmanager-8352.rostiapp.cz/api/ingest/luxury-cars/proces_orders", {
363363
method: "POST",
364364
headers: {
365365
"Content-Type": "application/json",
366+
"Accept": "application/json"
366367
},
367-
body: JSON.stringify({ start: true }),
368+
body: JSON.stringify({ start: true })
368369
})
369370
.then(function (response) {
370371
if (response.ok) {

0 commit comments

Comments
 (0)