Merge pull request #1444 from patrickrb/fix-installer-ajax-url

Fix CORS error with installer
This commit is contained in:
Fabian Berg
2025-01-03 02:46:57 +01:00
committed by GitHub

View File

@@ -268,7 +268,7 @@
return new Promise((resolve, reject) => {
$.ajax({
url: "<?php echo $_POST['websiteurl'] ?? $websiteurl; ?>" + "index.php/migrate",
url: `${window.location.origin}/index.php/migrate`,
dataType: 'json',
success: async function(response) {
if (response.status == 'success') {
@@ -297,7 +297,7 @@
return new Promise((resolve, reject) => {
$.ajax({
url: "<?php echo $_POST['websiteurl'] ?? $websiteurl; ?>" + "index.php/update/dxcc",
url: `${window.location.origin}/index.php/update/dxcc`,
success: async function(response) {
if (response == 'success') {
running(field, false);