From fe7a522a64abdd73ee4b47a843e4fdafddfef9fb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 28 Aug 2023 13:17:44 -0700 Subject: [PATCH] remove unnecessary and misleading header This has nothing to do with CORS. There is no need for this header. This should address a change requested by Ramon (@kx1t) Signed-off-by: Dirk Hohndel --- html/planeObject.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/html/planeObject.js b/html/planeObject.js index 25e24b2..788a6d6 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -2913,14 +2913,12 @@ PlaneObject.prototype.setFlight = function(flight) { // grab up to the first 100 callsigns and leave the rest for later var route_check_array = g.route_check_array.slice(0,100); g.route_check_array = g.route_check_array.slice(100); - jQuery.ajax({ type: "POST", url: routeApiUrl, contentType: 'application/json; charset=utf-8', dataType: 'json', - data: JSON.stringify({ 'planes': route_check_array}), - headers: { "Access-Control-Allow-Origin": "*" }}) + data: JSON.stringify({ 'planes': route_check_array})}) .done((routes) => { g.route_check_in_flight = false; if (debugAll) {